GeneratorAdapter

org.nlogo.generate.GeneratorAdapter
class GeneratorAdapter(mv: MethodVisitor, access: Int, name: String, desc: String, igen: Generator#InstructionGenerator[_]) extends GeneratorAdapter

Attributes

Source
GeneratorAdapter.scala
Graph
Supertypes
class GeneratorAdapter
class LocalVariablesSorter
class MethodVisitor
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def generateArgument(instr: Instruction, argIndex: Int, retTypeWanted: Class[_], thisInstrUID: Int): Unit

Attributes

Source
GeneratorAdapter.scala
def generateConversion(typeFrom: Class[_], typeTo: Class[_], parentInstr: Instruction, argIndex: Int): Unit

Attributes

Source
GeneratorAdapter.scala
override def getLocalType(local: Int): Type

Attributes

Definition Classes
GeneratorAdapter
Source
GeneratorAdapter.scala
def keepField(fieldName: String, obj: AnyRef, thisInstrUID: Int): Unit

Attributes

Source
GeneratorAdapter.scala
override def loadArg(arg: Int): Unit

Attributes

Definition Classes
GeneratorAdapter
Source
GeneratorAdapter.scala
override def loadArgArray(): Unit

Attributes

Definition Classes
GeneratorAdapter
Source
GeneratorAdapter.scala
override def loadArgs(arg: Int, count: Int): Unit

Attributes

Definition Classes
GeneratorAdapter
Source
GeneratorAdapter.scala
override def loadArgs(): Unit

Attributes

Definition Classes
GeneratorAdapter
Source
GeneratorAdapter.scala
def loadContext(): Unit

Attributes

Source
GeneratorAdapter.scala
def loadKeptField(fieldName: String, thisInstrUID: Int): Unit

Attributes

Source
GeneratorAdapter.scala
override def loadLocal(local: Int): Unit

Attributes

Definition Classes
GeneratorAdapter
Source
GeneratorAdapter.scala
override def loadLocal(index: Int, tpe: Type): Unit

Generates the instruction to load the given local variable on the stack.

Generates the instruction to load the given local variable on the stack.

Value parameters

index

a local variable index.

tpe

the type of this local variable.

Attributes

Definition Classes
GeneratorAdapter
Source
GeneratorAdapter.scala
override def loadThis(): Unit

Attributes

Definition Classes
GeneratorAdapter
Source
GeneratorAdapter.scala
def markLineNumber(lineNum: Int): Unit

Attributes

Source
GeneratorAdapter.scala
override def newLocal(tpe: Type): Int

Attributes

Definition Classes
LocalVariablesSorter
Source
GeneratorAdapter.scala
def push(obj: AnyRef): Unit

Note that using "push" can create more efficient code than using "visitLdcInsn()", because when possible it creates ICONST_1, or DCONST_0, etc.

Note that using "push" can create more efficient code than using "visitLdcInsn()", because when possible it creates ICONST_1, or DCONST_0, etc.

Value parameters

obj

can be any boxed primitive type, or a String.

Attributes

Source
GeneratorAdapter.scala
override def storeArg(arg: Int): Unit

Attributes

Definition Classes
GeneratorAdapter
Source
GeneratorAdapter.scala
override def storeLocal(local: Int): Unit

Attributes

Definition Classes
GeneratorAdapter
Source
GeneratorAdapter.scala
override def storeLocal(index: Int, tpe: Type): Unit

Generates the instruction to store the top stack value in the given local variable.

Generates the instruction to store the top stack value in the given local variable.

Value parameters

index

a local variable index.

tpe

the type of this local variable.

Attributes

Definition Classes
GeneratorAdapter
Source
GeneratorAdapter.scala
override def visitIincInsn(variable: Int, increment: Int): Unit

Attributes

Definition Classes
LocalVariablesSorter -> MethodVisitor
Source
GeneratorAdapter.scala
override def visitLineNumber(line: Int, start: Label): Unit

Attributes

Definition Classes
MethodVisitor
Source
GeneratorAdapter.scala
override def visitLocalVariable(name: String, desc: String, signature: String, start: Label, end: Label, index: Int): Unit

Attributes

Definition Classes
LocalVariablesSorter -> MethodVisitor
Source
GeneratorAdapter.scala
override def visitMaxs(maxStack: Int, maxLocals: Int): Unit

Attributes

Definition Classes
LocalVariablesSorter -> MethodVisitor
Source
GeneratorAdapter.scala
override def visitVarInsn(opcode: Int, variable: Int): Unit

Attributes

Definition Classes
LocalVariablesSorter -> MethodVisitor
Source
GeneratorAdapter.scala

Inherited methods

def arrayLength(): Unit

Attributes

Inherited from:
GeneratorAdapter
def arrayLoad(x$0: Type): Unit

Attributes

Inherited from:
GeneratorAdapter
def arrayStore(x$0: Type): Unit

Attributes

Inherited from:
GeneratorAdapter
def box(x$0: Type): Unit

Attributes

Inherited from:
GeneratorAdapter
def cast(x$0: Type, x$1: Type): Unit

Attributes

Inherited from:
GeneratorAdapter
def catchException(x$0: Label, x$1: Label, x$2: Type): Unit

Attributes

Inherited from:
GeneratorAdapter
def checkCast(x$0: Type): Unit

Attributes

Inherited from:
GeneratorAdapter
def dup(): Unit

Attributes

Inherited from:
GeneratorAdapter
def dup2(): Unit

Attributes

Inherited from:
GeneratorAdapter
def dup2X1(): Unit

Attributes

Inherited from:
GeneratorAdapter
def dup2X2(): Unit

Attributes

Inherited from:
GeneratorAdapter
def dupX1(): Unit

Attributes

Inherited from:
GeneratorAdapter
def dupX2(): Unit

Attributes

Inherited from:
GeneratorAdapter
def endMethod(): Unit

Attributes

Inherited from:
GeneratorAdapter
def getAccess(): Int

Attributes

Inherited from:
GeneratorAdapter
def getArgumentTypes(): Array[Type]

Attributes

Inherited from:
GeneratorAdapter
def getDelegate(): MethodVisitor

Attributes

Inherited from:
MethodVisitor
def getField(x$0: Type, x$1: String, x$2: Type): Unit

Attributes

Inherited from:
GeneratorAdapter
def getName(): String

Attributes

Inherited from:
GeneratorAdapter
def getReturnType(): Type

Attributes

Inherited from:
GeneratorAdapter
def getStatic(x$0: Type, x$1: String, x$2: Type): Unit

Attributes

Inherited from:
GeneratorAdapter
def goTo(x$0: Label): Unit

Attributes

Inherited from:
GeneratorAdapter
def ifCmp(x$0: Type, x$1: Int, x$2: Label): Unit

Attributes

Inherited from:
GeneratorAdapter
def ifICmp(x$0: Int, x$1: Label): Unit

Attributes

Inherited from:
GeneratorAdapter
def ifNonNull(x$0: Label): Unit

Attributes

Inherited from:
GeneratorAdapter
def ifNull(x$0: Label): Unit

Attributes

Inherited from:
GeneratorAdapter
def ifZCmp(x$0: Int, x$1: Label): Unit

Attributes

Inherited from:
GeneratorAdapter
def iinc(x$0: Int, x$1: Int): Unit

Attributes

Inherited from:
GeneratorAdapter
def instanceOf(x$0: Type): Unit

Attributes

Inherited from:
GeneratorAdapter
def invokeConstructor(x$0: Type, x$1: Method): Unit

Attributes

Inherited from:
GeneratorAdapter
def invokeDynamic(x$0: String, x$1: String, x$2: Handle, x$3: <FromJavaObject>*): Unit

Attributes

Inherited from:
GeneratorAdapter
def invokeInterface(x$0: Type, x$1: Method): Unit

Attributes

Inherited from:
GeneratorAdapter
def invokeStatic(x$0: Type, x$1: Method): Unit

Attributes

Inherited from:
GeneratorAdapter
def invokeVirtual(x$0: Type, x$1: Method): Unit

Attributes

Inherited from:
GeneratorAdapter
def mark(): Label

Attributes

Inherited from:
GeneratorAdapter
def mark(x$0: Label): Unit

Attributes

Inherited from:
GeneratorAdapter
def math(x$0: Int, x$1: Type): Unit

Attributes

Inherited from:
GeneratorAdapter

Attributes

Inherited from:
GeneratorAdapter
def monitorExit(): Unit

Attributes

Inherited from:
GeneratorAdapter
def newArray(x$0: Type): Unit

Attributes

Inherited from:
GeneratorAdapter
def newInstance(x$0: Type): Unit

Attributes

Inherited from:
GeneratorAdapter
def newLabel(): Label

Attributes

Inherited from:
GeneratorAdapter
def not(): Unit

Attributes

Inherited from:
GeneratorAdapter
def pop(): Unit

Attributes

Inherited from:
GeneratorAdapter
def pop2(): Unit

Attributes

Inherited from:
GeneratorAdapter
def push(x$0: ConstantDynamic): Unit

Attributes

Inherited from:
GeneratorAdapter
def push(x$0: Handle): Unit

Attributes

Inherited from:
GeneratorAdapter
def push(x$0: Type): Unit

Attributes

Inherited from:
GeneratorAdapter
def push(x$0: String): Unit

Attributes

Inherited from:
GeneratorAdapter
def push(x$0: Double): Unit

Attributes

Inherited from:
GeneratorAdapter
def push(x$0: Float): Unit

Attributes

Inherited from:
GeneratorAdapter
def push(x$0: Long): Unit

Attributes

Inherited from:
GeneratorAdapter
def push(x$0: Int): Unit

Attributes

Inherited from:
GeneratorAdapter
def push(x$0: Boolean): Unit

Attributes

Inherited from:
GeneratorAdapter
def putField(x$0: Type, x$1: String, x$2: Type): Unit

Attributes

Inherited from:
GeneratorAdapter
def putStatic(x$0: Type, x$1: String, x$2: Type): Unit

Attributes

Inherited from:
GeneratorAdapter
def ret(x$0: Int): Unit

Attributes

Inherited from:
GeneratorAdapter
def returnValue(): Unit

Attributes

Inherited from:
GeneratorAdapter
def swap(x$0: Type, x$1: Type): Unit

Attributes

Inherited from:
GeneratorAdapter
def swap(): Unit

Attributes

Inherited from:
GeneratorAdapter
def tableSwitch(x$0: Array[Int], x$1: TableSwitchGenerator, x$2: Boolean): Unit

Attributes

Inherited from:
GeneratorAdapter
def tableSwitch(x$0: Array[Int], x$1: TableSwitchGenerator): Unit

Attributes

Inherited from:
GeneratorAdapter
def throwException(x$0: Type, x$1: String): Unit

Attributes

Inherited from:
GeneratorAdapter

Attributes

Inherited from:
GeneratorAdapter
def unbox(x$0: Type): Unit

Attributes

Inherited from:
GeneratorAdapter
def valueOf(x$0: Type): Unit

Attributes

Inherited from:
GeneratorAdapter

Attributes

Inherited from:
MethodVisitor
def visitAnnotation(x$0: String, x$1: Boolean): AnnotationVisitor

Attributes

Inherited from:
MethodVisitor
def visitAnnotationDefault(): AnnotationVisitor

Attributes

Inherited from:
MethodVisitor
def visitAttribute(x$0: Attribute): Unit

Attributes

Inherited from:
MethodVisitor
def visitCode(): Unit

Attributes

Inherited from:
MethodVisitor
def visitEnd(): Unit

Attributes

Inherited from:
MethodVisitor
def visitFieldInsn(x$0: Int, x$1: String, x$2: String, x$3: String): Unit

Attributes

Inherited from:
MethodVisitor
def visitFrame(x$0: Int, x$1: Int, x$2: Array[<FromJavaObject>], x$3: Int, x$4: Array[<FromJavaObject>]): Unit

Attributes

Inherited from:
LocalVariablesSorter
def visitInsn(x$0: Int): Unit

Attributes

Inherited from:
MethodVisitor
def visitInsnAnnotation(x$0: Int, x$1: TypePath, x$2: String, x$3: Boolean): AnnotationVisitor

Attributes

Inherited from:
MethodVisitor
def visitIntInsn(x$0: Int, x$1: Int): Unit

Attributes

Inherited from:
MethodVisitor
def visitInvokeDynamicInsn(x$0: String, x$1: String, x$2: Handle, x$3: <FromJavaObject>*): Unit

Attributes

Inherited from:
MethodVisitor
def visitJumpInsn(x$0: Int, x$1: Label): Unit

Attributes

Inherited from:
MethodVisitor
def visitLabel(x$0: Label): Unit

Attributes

Inherited from:
MethodVisitor
def visitLdcInsn(x$0: <FromJavaObject>): Unit

Attributes

Inherited from:
MethodVisitor
def visitLocalVariableAnnotation(x$0: Int, x$1: TypePath, x$2: Array[Label], x$3: Array[Label], x$4: Array[Int], x$5: String, x$6: Boolean): AnnotationVisitor

Attributes

Inherited from:
LocalVariablesSorter
def visitLookupSwitchInsn(x$0: Label, x$1: Array[Int], x$2: Array[Label]): Unit

Attributes

Inherited from:
MethodVisitor
def visitMethodInsn(x$0: Int, x$1: String, x$2: String, x$3: String, x$4: Boolean): Unit

Attributes

Inherited from:
MethodVisitor
def visitMultiANewArrayInsn(x$0: String, x$1: Int): Unit

Attributes

Inherited from:
MethodVisitor
def visitParameter(x$0: String, x$1: Int): Unit

Attributes

Inherited from:
MethodVisitor
def visitParameterAnnotation(x$0: Int, x$1: String, x$2: Boolean): AnnotationVisitor

Attributes

Inherited from:
MethodVisitor
def visitTableSwitchInsn(x$0: Int, x$1: Int, x$2: Label, x$3: Label*): Unit

Attributes

Inherited from:
MethodVisitor
def visitTryCatchAnnotation(x$0: Int, x$1: TypePath, x$2: String, x$3: Boolean): AnnotationVisitor

Attributes

Inherited from:
MethodVisitor
def visitTryCatchBlock(x$0: Label, x$1: Label, x$2: Label, x$3: String): Unit

Attributes

Inherited from:
MethodVisitor
def visitTypeAnnotation(x$0: Int, x$1: TypePath, x$2: String, x$3: Boolean): AnnotationVisitor

Attributes

Inherited from:
MethodVisitor
def visitTypeInsn(x$0: Int, x$1: String): Unit

Attributes

Inherited from:
MethodVisitor

Deprecated and Inherited methods

@Deprecated(since = _, forRemoval = _)
def visitMethodInsn(x$0: Int, x$1: String, x$2: String, x$3: String): Unit

Attributes

Deprecated
[Since version ] see corresponding Javadoc for more information.
Inherited from:
MethodVisitor