com.pnfsoftware.jeb.core.units.code.java.IJavaIdentifier |
Java AST interface to represent a Java identifier, or variable.
Example:
int someVariable = 3; ^^^^^^^^^^^^
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.pnfsoftware.jeb.core.units.code.java.IJavaElement
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract IJavaIdentifier |
duplicate()
Duplicate this element.
| ||||||||||
abstract void |
generate(JavaOutputSink out, boolean definition)
Custom AST code generator that allows specifying whether the generation of this identifier is
part of its initial definition.
| ||||||||||
abstract String |
getDebugName()
Get the identifier's debug name, if any was provided.
| ||||||||||
abstract IJavaDefinition |
getDefinition()
Get this identifier's definition statement.
| ||||||||||
abstract String |
getGeneratedName(JavaOutputSink sink)
Retrieve the actual identifier name that would be generated to the provided sink.
| ||||||||||
abstract String |
getGeneratedType(JavaOutputSink sink)
Retrieve the actual type name that would be generated to the provided sink.
| ||||||||||
abstract String |
getName()
Get the identifier original name.
| ||||||||||
abstract IJavaType |
getType()
Get this identifier's type.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.pnfsoftware.jeb.core.units.code.java.IJavaElement
| |||||||||||
From interface
com.pnfsoftware.jeb.core.units.code.java.IJavaExpression
| |||||||||||
From interface
com.pnfsoftware.jeb.core.units.code.java.IJavaLeftExpression
|
Duplicate this element.
Custom AST code generator that allows specifying whether the generation of this identifier is part of its initial definition.
definition | true if this identifier is generated by its containing
IJavaDefinition element
|
---|
Get the identifier's debug name, if any was provided.
In order to retrieve the current (effective) name, use
getIdentifierName(IJavaIdentifier)
.
Retrieve the actual identifier name that would be generated to the provided sink.
Retrieve the actual type name that would be generated to the provided sink.
Get the identifier original name.
In order to retrieve the current (effective) name, use
getIdentifierName(IJavaIdentifier)
.