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