class_body
{ "{"
block_comment "/** Default source of SAXHandlers */"
field_declaration
modifiers
private "private"
static "static"
final "final"
type_identifier "SAXHandlerFactory"
variable_declarator
identifier "DEFAULTSAXHANDLERFAC"
= "="
object_creation_expression
new "new"
type_identifier "DefaultSAXHandlerFactory"
argument_list
( "("
) ")"
; ";"
block_comment "/** Default source of JDOM Content */"
field_declaration
modifiers
private "private"
static "static"
final "final"
type_identifier "JDOMFactory"
variable_declarator
identifier "DEFAULTJDOMFAC"
= "="
object_creation_expression
new "new"
type_identifier "DefaultJDOMFactory"
argument_list
( "("
) ")"
; ";"
block_comment "/*\n\t * ====================================================="...
block_comment "/**\n\t * The XMLReader pillar of SAXBuilder\n\t */"
field_declaration
modifiers
private "private"
type_identifier "XMLReaderJDOMFactory"
variable_declarator
identifier "readerfac"
= "="
null_literal "null"
; ";"
block_comment "/**\n\t * The SAXHandler pillar of SAXBuilder\n\t */"
field_declaration
modifiers
private "private"
type_identifier "SAXHandlerFactory"
variable_declarator
identifier "handlerfac"
= "="
null_literal "null"
; ";"
block_comment "/**\n\t * The JDOMFactory pillar for creating new JDOM objects"...
field_declaration
modifiers
private "private"
type_identifier "JDOMFactory"
variable_declarator
identifier "jdomfac"
= "="
null_literal "null"
; ";"
block_comment "/*\n\t * ====================================================="...
block_comment "/** User-specified features to be set on the SAX parser */"
field_declaration (+30 nodes collapsed)
block_comment "/** User-specified properties to be set on the SAX parser */"
field_declaration (+30 nodes collapsed)
block_comment "/** ErrorHandler class to use */"
field_declaration
modifiers
private "private"
type_identifier "ErrorHandler"
variable_declarator
identifier "saxErrorHandler"
= "="
null_literal "null"
; ";"
block_comment "/** EntityResolver class to use */"
field_declaration
modifiers
private "private"
type_identifier "EntityResolver"
variable_declarator
identifier "saxEntityResolver"
= "="
null_literal "null"
; ";"
block_comment "/** DTDHandler class to use */"
field_declaration
modifiers
private "private"
type_identifier "DTDHandler"
variable_declarator
identifier "saxDTDHandler"
= "="
null_literal "null"
; ";"
block_comment "/** XMLFilter instance to use */"
field_declaration
modifiers
private "private"
type_identifier "XMLFilter"
variable_declarator
identifier "saxXMLFilter"
= "="
null_literal "null"
; ";"
block_comment "/** Whether expansion of entities should occur */"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "expand"
= "="
true "true"
; ";"
block_comment "/** Whether to ignore ignorable whitespace */"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "ignoringWhite"
= "="
false "false"
; ";"
block_comment "/** Whether to ignore all whitespace content */"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "ignoringBoundaryWhite"
= "="
false "false"
; ";"
block_comment "/** Whether parser reuse is allowed. */"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "reuseParser"
= "="
true "true"
; ";"
block_comment "/** The current SAX parser, if parser reuse has been activat"...
field_declaration
modifiers
private "private"
type_identifier "SAXEngine"
variable_declarator
identifier "engine"
= "="
null_literal "null"
; ";"
block_comment "/**\n\t * Creates a new JAXP-based SAXBuilder. The underlying "...
constructor_declaration (+21 nodes collapsed)
block_comment "/**\n\t * Creates a new JAXP-based SAXBuilder. The underlying "...
constructor_declaration (+40 nodes collapsed)
block_comment "/**\n\t * Creates a new SAXBuilder using the specified SAX par"...
constructor_declaration (+27 nodes collapsed)
block_comment "/**\n\t * Creates a new SAXBuilder using the specified SAX2.0 "...
constructor_declaration (+43 nodes collapsed)
block_comment "/**\n\t * Creates a new SAXBuilder with the specified XMLReade"...
constructor_declaration (+26 nodes collapsed)
block_comment "/**\n\t * Creates a new SAXBuilder. This is the base construct"...
constructor_declaration (+81 nodes collapsed)
block_comment "/**\n\t * Returns the driver class assigned in the constructor"...
method_declaration (+47 nodes collapsed)
block_comment "/**\n\t * Returns the current {@link org.jdom2.JDOMFactory} in"...
method_declaration (+22 nodes collapsed)
block_comment "/**\n\t * Returns the current {@link org.jdom2.JDOMFactory} in"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
type_identifier "JDOMFactory"
identifier "getJDOMFactory"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "jdomfac"
; ";"
} "}"
block_comment "/**\n\t * This sets a custom JDOMFactory for the builder. Use "...
method_declaration (+27 nodes collapsed)
block_comment "/**\n\t * This sets a custom JDOMFactory for the builder. Use "...
method_declaration (+31 nodes collapsed)
block_comment "/**\n\t * Get the current XMLReader factory.\n\t * \n\t * @return "...
method_declaration
modifiers
public "public"
type_identifier "XMLReaderJDOMFactory"
identifier "getXMLReaderFactory"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "readerfac"
; ";"
} "}"
block_comment "/**\n\t * Set the current XMLReader factory.\n\t * \n\t * @param r"...
method_declaration (+39 nodes collapsed)
block_comment "/**\n\t * Get the SAXHandlerFactory used to supply SAXHandlers"...
method_declaration
modifiers
public "public"
type_identifier "SAXHandlerFactory"
identifier "getSAXHandlerFactory"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "handlerfac"
; ";"
} "}"
block_comment "/**\n\t * Set the SAXHandlerFactory to be used by this SAXBuil"...
method_declaration (+39 nodes collapsed)
block_comment "/**\n\t * Returns whether validation is to be performed during"...
method_declaration (+22 nodes collapsed)
block_comment "/**\n\t * Returns whether validation is to be performed during"...
method_declaration (+24 nodes collapsed)
block_comment "/**\n\t * This sets validation for the builder.\n\t * <p>\n\t * <b"...
method_declaration (+38 nodes collapsed)
block_comment "/**\n\t * Returns the {@link ErrorHandler} assigned, or null i"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
type_identifier "ErrorHandler"
identifier "getErrorHandler"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "saxErrorHandler"
; ";"
} "}"
block_comment "/**\n\t * This sets custom ErrorHandler for the Builder. Setti"...
method_declaration (+28 nodes collapsed)
block_comment "/**\n\t * Returns the {@link EntityResolver} assigned, or null"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
type_identifier "EntityResolver"
identifier "getEntityResolver"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "saxEntityResolver"
; ";"
} "}"
block_comment "/**\n\t * This sets custom EntityResolver for the <code>Builde"...
method_declaration (+28 nodes collapsed)
block_comment "/**\n\t * Returns the {@link DTDHandler} assigned, or null if "...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
type_identifier "DTDHandler"
identifier "getDTDHandler"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "saxDTDHandler"
; ";"
} "}"
block_comment "/**\n\t * This sets custom DTDHandler for the <code>Builder</c"...
method_declaration (+28 nodes collapsed)
block_comment "/**\n\t * Returns the {@link XMLFilter} used during parsing, o"...
method_declaration
modifiers
public "public"
type_identifier "XMLFilter"
identifier "getXMLFilter"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "saxXMLFilter"
; ";"
} "}"
block_comment "/**\n\t * This sets a custom {@link org.xml.sax.XMLFilter} for"...
method_declaration (+28 nodes collapsed)
block_comment "/**\n\t * Returns whether element content whitespace is to be "...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
boolean_type "boolean"
identifier "getIgnoringElementContentWhitespace"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "ignoringWhite"
; ";"
} "}"
block_comment "/**\n\t * Specifies whether or not the parser should eliminate"...
method_declaration (+31 nodes collapsed)
block_comment "/**\n\t * Returns whether or not the parser will eliminate ele"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
boolean_type "boolean"
identifier "getIgnoringBoundaryWhitespace"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "ignoringBoundaryWhite"
; ";"
} "}"
block_comment "/**\n\t * Specifies whether or not the parser should elminate "...
method_declaration (+31 nodes collapsed)
block_comment "/**\n\t * Returns whether or not entities are being expanded i"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
boolean_type "boolean"
identifier "getExpandEntities"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "expand"
; ";"
} "}"
block_comment "/**\n\t * <p>\n\t * This sets whether or not to expand entities "...
method_declaration (+31 nodes collapsed)
block_comment "/**\n\t * Returns whether the contained SAX parser instance is"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "getReuseParser"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "reuseParser"
; ";"
} "}"
block_comment "/**\n\t * Specifies whether this builder will reuse the same S"...
method_declaration (+42 nodes collapsed)
block_comment "/**\n\t * Specifies whether this builder will do fast reconfig"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Deprecated"
public "public"
void_type "void"
identifier "setFastReconfigure"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
boolean_type "boolean"
identifier "fastReconfigure"
) ")"
block
{ "{"
line_comment "// do nothing"
} "}"
block_comment "/**\n\t * This sets a feature on the SAX parser. See the SAX d"...
method_declaration (+52 nodes collapsed)
block_comment "/**\n\t * This sets a property on the SAX parser. See the SAX "...
method_declaration (+41 nodes collapsed)
block_comment "/**\n\t * This method builds a new and reusable {@link SAXEngi"...
method_declaration (+114 nodes collapsed)
block_comment "/**\n\t * Allow overriding classes access to the Parser before"...
method_declaration (+103 nodes collapsed)
block_comment "/**\n\t * This method retrieves (or builds) a SAXBuilderEngine"...
method_declaration (+44 nodes collapsed)
block_comment "/**\n\t * This configures the XMLReader to be used for reading"...
method_declaration
modifiers
protected "protected"
void_type "void"
identifier "configureParser"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "XMLReader"
identifier "parser"
, ","
formal_parameter
modifiers
final "final"
type_identifier "SAXHandler"
identifier "contentHandler"
) ")"
throws
throws "throws"
type_identifier "JDOMException"
block
{ "{"
line_comment "// Setup SAX handlers."
expression_statement
method_invocation
identifier "parser"
. "."
identifier "setContentHandler"
argument_list
( "("
identifier "contentHandler"
) ")"
; ";"
if_statement (+22 nodes collapsed)
if_statement (+36 nodes collapsed)
if_statement (+41 nodes collapsed)
local_variable_declaration
boolean_type "boolean"
variable_declarator
identifier "success"
= "="
false "false"
; ";"
try_statement (+51 nodes collapsed)
line_comment "// Some parsers use alternate property for lexical handling "...
if_statement (+62 nodes collapsed)
line_comment "// Set any user-specified features on the parser."
enhanced_for_statement (+67 nodes collapsed)
line_comment "// Set any user-specified properties on the parser."
enhanced_for_statement (+61 nodes collapsed)
line_comment "// Set entity expansion"
line_comment "// Note SAXHandler can work regardless of how this is set, b"...
line_comment "// entity expansion it's worth it to try to tell the parser "...
line_comment "// even bother with external general entities."
line_comment "// Apparently no parsers yet support this feature."
line_comment "// XXX It might make sense to setEntityResolver() with a res"...
line_comment "// that simply ignores external general entities"
try_statement (+50 nodes collapsed)
line_comment "// Try setting the DeclHandler if entity expansion is off"
if_statement (+62 nodes collapsed)
} "}"
block_comment "/**\n\t * Tries to set a feature on the parser. If the feature"...
method_declaration (+142 nodes collapsed)
block_comment "/**\n\t * <p>\n\t * Tries to set a property on the parser. If th"...
method_declaration (+142 nodes collapsed)
block_comment "/**\n\t * This builds a document from the supplied input sourc"...
method_declaration (+66 nodes collapsed)
block_comment "/**\n\t * <p>\n\t * This builds a document from the supplied inp"...
method_declaration (+66 nodes collapsed)
block_comment "/**\n\t * <p>\n\t * This builds a document from the supplied fil"...
method_declaration (+66 nodes collapsed)
block_comment "/**\n\t * <p>\n\t * This builds a document from the supplied URL"...
method_declaration (+66 nodes collapsed)
block_comment "/**\n\t * <p>\n\t * This builds a document from the supplied inp"...
method_declaration (+74 nodes collapsed)
block_comment "/**\n\t * <p>\n\t * This builds a document from the supplied Rea"...
method_declaration (+66 nodes collapsed)
block_comment "/**\n\t * <p>\n\t * This builds a document from the supplied Rea"...
method_declaration (+74 nodes collapsed)
block_comment "/**\n\t * <p>\n\t * This builds a document from the supplied URI"...
method_declaration (+246 nodes collapsed)
} "}"