-
ClassesClassDescriptionThis class could be removed in a future version. Use default DefaultPrinterConfiguration.This class is no longer used phantom node are now an attribute of each nodeThis class could be removed in a future version. Use default DefaultPrettyPrinter.This class is no longer acceptable to use because it is not sufficiently configurable and it is too tied to a specific implementation. This class could be removed in a future version. Use default DefaultPrettyPrinterVisitor.
-
FieldsFieldDescriptionNew code should use
LineSeparator.SYSTEM
if referring to the current host system's line separator, elseLineSeparator.CR
orLineSeparator.LF
orLineSeparator.CRLF
if referring to a specific style of line separator.Renamed fromUtils.EOL
to make it explicit that we're using the system's line separator. New code should useLineSeparator.SYSTEM
if referring to the current host system's line separator, elseLineSeparator.CR
orLineSeparator.LF
orLineSeparator.CRLF
if referring to a specific style of line separator.
-
MethodsMethodDescriptiongetComments was a too generic name and it could be confused with getComment or getAllContainedComments Use
CompilationUnit.getAllComments()
insteadThis function has issues with corner cases, such as 2147483648, so please useIntegerLiteralExpr.asNumber()
. It will be made private or merged withIntegerLiteralExpr.asNumber()
in future releasesThis function is deprecated in favor ofLiteralStringValueExpr.setValue(String)
. Please refer to theIntegerLiteralExpr.asNumber()
function for valid formats and how to construct literals holding negative values.This function has issues with corner cases, such as 9223372036854775808L, so please useLongLiteralExpr.asNumber()
. It will be made private or merged withLongLiteralExpr.asNumber()
in future releasesThis function is deprecated in favor ofLiteralStringValueExpr.setValue(String)
. Please refer to theLongLiteralExpr.asNumber()
function for valid formats and how to construct literals holding negative values.useNode.findAll(Class)
but be aware that findAll also considers the initial node.useNode.findAll(Class)
but be aware that findAll also considers the initial node.use addExtendedTypeuse addExtendedTypeuse addImplementedType insteaduse addImplementedType insteaduseNodeWithRange.containsWithinRange(Node)
instead.set the encoding in theParserConfiguration
set the encoding in theParserConfiguration
set the encoding in theParserConfiguration
set the encoding in theParserConfiguration
Use the constructor (e.g.new Position(line, column)
)(@see Indentation.getIndent())(@see Indentation.size)(@see Indentation.type)(@see Indentation.size)(@see Indentation.size())(@see Indentation.type())(@see Indentation.size)use toString()use toString()set the encoding in theParserConfiguration
set the encoding in theParserConfiguration
set the encoding in theParserConfiguration
set the encoding in theParserConfiguration
set the encoding in theParserConfiguration
UseTokenTypes.isWhitespaceButNotEndOfLine(int)
which more explicitly reflects that this also includes other whitespace e.g.EOF
andCTRL_Z
and a large number of other characters. See the grammar for details of exactly which characters are included as a "space" (.<SPACE: [" ", "\t", "\f", " ", " ", " ", "", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "", "", "", " ", " ", " ", " ", "", " ", ""]>
use screamingToCamelCase
-
ConstructorsConstructorDescriptionThis function is deprecated in favor of
IntegerLiteralExpr(String)
. Please refer to theIntegerLiteralExpr.asNumber()
function for valid formats and how to construct literals holding negative values.This function is deprecated in favor ofLongLiteralExpr(String)
. Please refer to theLongLiteralExpr.asNumber()
function for valid formats and how to construct literals holding negative values.use JavaParser.parseClassOrInterfaceType instead. This constructor does not understand generics.