Methods
Type Params |
Return Type |
Name and description |
|
boolean |
addInnerClass(ClassNode innerClass)
|
|
static int |
argumentSize(Expression arguments)
|
|
static boolean |
containsSpreadExpression(Expression arguments)
|
|
protected void |
createInterfaceSyntheticStaticFields()
|
|
protected void |
createSyntheticStaticFields()
|
|
void |
despreadList(List expressions, boolean wrap)
|
|
protected boolean |
emptyArguments(Expression arguments)
|
|
protected CompileUnit |
getCompileUnit()
|
|
WriterController |
getController()
|
|
static FieldNode |
getDeclaredFieldOfCurrentClassOrAccessibleFieldOfSuper(ClassNode accessingNode, ClassNode current, String fieldName, boolean skipCurrent)
|
|
SourceUnit |
getSourceUnit()
|
|
static boolean |
isFieldDirectlyAccessible(FieldNode field, ClassNode clazz) Determines if the given class can directly access the given field (via
GETFIELD , GETSTATIC , etc. bytecode instructions). |
|
static boolean |
isNullConstant(Expression expr)
|
|
static boolean |
isThisExpression(Expression expression)
|
|
void |
loadInstanceField(FieldExpression fldExp) RHS instance field. should move most of the code in the BytecodeHelper |
|
void |
loadStaticField(FieldExpression fldExp) @param fldExp |
|
protected void |
loadThisOrOwner() Loads either this object or if we're inside a closure then load the top level owner |
|
void |
loadWrapper(Expression argument)
|
|
void |
onLineNumber(ASTNode statement, String message)
|
|
static boolean |
samePackages(String pkg1, String pkg2)
|
|
void |
throwException(String s)
|
|
void |
visitAnnotations(AnnotatedNode node) Note: ignore it. |
|
void |
visitArgumentlistExpression(ArgumentListExpression ale)
|
|
void |
visitArrayExpression(ArrayExpression expression)
|
|
void |
visitAssertStatement(AssertStatement statement)
|
|
void |
visitAttributeExpression(AttributeExpression expression)
|
|
void |
visitBinaryExpression(BinaryExpression expression)
|
|
void |
visitBitwiseNegationExpression(BitwiseNegationExpression expression)
|
|
void |
visitBlockStatement(BlockStatement block)
|
|
void |
visitBooleanExpression(BooleanExpression expression) return a primitive boolean value of the BooleanExpression. |
|
void |
visitBreakStatement(BreakStatement statement)
|
|
void |
visitBytecodeExpression(BytecodeExpression cle)
|
|
void |
visitBytecodeSequence(BytecodeSequence bytecodeSequence)
|
|
void |
visitCaseStatement(CaseStatement statement)
|
|
void |
visitCastExpression(CastExpression castExpression)
|
|
void |
visitCatchStatement(CatchStatement statement)
|
|
void |
visitClass(ClassNode classNode)
|
|
void |
visitClassExpression(ClassExpression expression) load class object on stack |
|
void |
visitClosureExpression(ClosureExpression expression)
|
|
void |
visitClosureListExpression(ClosureListExpression expression)
|
|
void |
visitConstantExpression(ConstantExpression expression) Generate byte code for constants |
|
void |
visitConstructor(ConstructorNode node)
|
|
void |
visitConstructorCallExpression(ConstructorCallExpression call)
|
|
protected void |
visitConstructorOrMethod(MethodNode node, boolean isConstructor)
|
|
void |
visitContinueStatement(ContinueStatement statement)
|
|
void |
visitDeclarationExpression(DeclarationExpression expression)
|
|
void |
visitDoWhileLoop(DoWhileStatement loop)
|
|
void |
visitExpressionStatement(ExpressionStatement statement)
|
|
void |
visitField(FieldNode fieldNode)
|
|
void |
visitFieldExpression(FieldExpression expression)
|
|
void |
visitForLoop(ForStatement loop)
|
|
void |
visitGStringExpression(GStringExpression expression)
|
|
void |
visitGenericType(GenericsType genericsType)
|
|
void |
visitIfElse(IfStatement ifElse)
|
|
void |
visitListExpression(ListExpression expression)
|
|
void |
visitMapEntryExpression(MapEntryExpression expression)
|
|
void |
visitMapExpression(MapExpression expression)
|
|
void |
visitMethod(MethodNode node)
|
|
void |
visitMethodCallExpression(MethodCallExpression call)
|
|
void |
visitMethodPointerExpression(MethodPointerExpression expression)
|
|
void |
visitNotExpression(NotExpression expression)
|
|
void |
visitPostfixExpression(PostfixExpression expression)
|
|
void |
visitPrefixExpression(PrefixExpression expression)
|
|
void |
visitProperty(PropertyNode statement)
|
|
void |
visitPropertyExpression(PropertyExpression expression)
|
|
void |
visitRangeExpression(RangeExpression expression)
|
|
void |
visitReturnStatement(ReturnStatement statement)
|
|
void |
visitSpreadExpression(SpreadExpression expression)
|
|
void |
visitSpreadMapExpression(SpreadMapExpression expression)
|
|
protected void |
visitStatement(Statement statement)
|
|
void |
visitStaticMethodCallExpression(StaticMethodCallExpression call)
|
|
void |
visitSwitch(SwitchStatement statement)
|
|
void |
visitSynchronizedStatement(SynchronizedStatement statement)
|
|
void |
visitTernaryExpression(TernaryExpression expression)
|
|
void |
visitThrowStatement(ThrowStatement statement)
|
|
void |
visitTryCatchFinally(TryCatchStatement statement)
|
|
void |
visitTupleExpression(TupleExpression expression)
|
|
void |
visitUnaryMinusExpression(UnaryMinusExpression expression)
|
|
void |
visitUnaryPlusExpression(UnaryPlusExpression expression)
|
|
void |
visitVariableExpression(VariableExpression expression) Visits a bare (unqualified) variable expression. |
|
void |
visitWhileLoop(WhileStatement loop)
|