public class New extends AbstractInvoke
| Modifier and Type | Field and Description |
|---|---|
boolean |
explicitClassTypeArgs |
boolean |
hasEnclosingScopeInstanceParam |
explicitTypeArgsopcode| Constructor and Description |
|---|
New(ClassType type,
Method ctor,
java.lang.Iterable<Instruction> args) |
| Modifier and Type | Method and Description |
|---|---|
<R,C> R |
accept(InsnVisitor<R,C> visitor,
C ctx)
Pass this
Instruction through the supplied InsnVisitor. |
ClassDecl |
getAnonymousClassDeclaration() |
IndexedInstructionCollection<Instruction> |
getArguments() |
EnumBitSet<InstructionFlag> |
getDirectFlags()
Any direct flags for this
Instruction. |
Method |
getMethod() |
ClassType |
getResultType()
Gets the stack type of the value produced by this
Instruction. |
@Nullable Instruction |
getTarget() |
boolean |
hasAnonymousClassDeclaration() |
void |
setAnonymousClassDeclaration(ClassDecl anonymousClassDeclaration) |
void |
setMethod(Method ctor) |
void |
setType(ClassType type) |
accept, addRef, ancestorsOfType, computeFlags, copy, descendantsMatching, descendantsOfType, descendantsToList, descendantsToListWhere, descendantsWhere, firstAncestorOfType, getBytecodeOffset, getChildren, getDescendants, getFirstChild, getFirstChildOrNull, getFlags, getLastChild, getLastChildOrNull, getNextSibling, getNextSiblingOrNull, getParent, getParentOrNull, getPrevSibling, getPrevSiblingOrNull, getSourceLine, getTag, hasDirectFlag, hasFlag, insertAfter, insertBefore, invalidateFlags, isConnected, isDescendantOf, onChildModified, onConnected, onDisconnected, releaseRef, remove, replaceWith, setBytecodeOffset, setOffsets, setSourceLine, setTag, toString, toString, withOffsetspublic boolean explicitClassTypeArgs
public boolean hasEnclosingScopeInstanceParam
public New(ClassType type, Method ctor, java.lang.Iterable<Instruction> args)
public ClassType getResultType()
InstructionInstruction.getResultType in class InstructionAType.public EnumBitSet<InstructionFlag> getDirectFlags()
InstructionInstruction.
The return value should be cached statically inside the Instruction impl.
getDirectFlags in class InstructionEnumBitSet representing the flags.Instruction.getFlags()public <R,C> R accept(InsnVisitor<R,C> visitor, C ctx)
InstructionInstruction through the supplied InsnVisitor.accept in class Instructionvisitor - The InsnVisitor.ctx - The context.InsnVisitor.public void setAnonymousClassDeclaration(ClassDecl anonymousClassDeclaration)
public boolean hasAnonymousClassDeclaration()
public ClassDecl getAnonymousClassDeclaration()
public Method getMethod()
getMethod in class AbstractInvokepublic IndexedInstructionCollection<Instruction> getArguments()
getArguments in class AbstractInvokepublic void setType(ClassType type)
public void setMethod(Method ctor)
@Nullable public @Nullable Instruction getTarget()