Package org.aspectj.weaver.bcel
Class LazyMethodGen
- java.lang.Object
-
- org.aspectj.weaver.bcel.LazyMethodGen
-
-
Field Summary
Fields Modifier and Type Field Description ResolvedTypedefiningType
-
Constructor Summary
Constructors Constructor Description LazyMethodGen(int modifiers, Type returnType, String name, Type[] paramTypes, String[] declaredExceptions, LazyClassGen enclosingClass)LazyMethodGen(Method m, LazyClassGen enclosingClass)LazyMethodGen(org.aspectj.weaver.bcel.BcelMethod m, LazyClassGen enclosingClass)
-
Method Summary
-
-
-
Field Detail
-
definingType
public ResolvedType definingType
-
-
Constructor Detail
-
LazyMethodGen
public LazyMethodGen(int modifiers, Type returnType, String name, Type[] paramTypes, String[] declaredExceptions, LazyClassGen enclosingClass)
-
LazyMethodGen
public LazyMethodGen(Method m, LazyClassGen enclosingClass)
-
LazyMethodGen
public LazyMethodGen(org.aspectj.weaver.bcel.BcelMethod m, LazyClassGen enclosingClass)
-
-
Method Detail
-
hasDeclaredLineNumberInfo
public boolean hasDeclaredLineNumberInfo()
-
getDeclarationLineNumber
public int getDeclarationLineNumber()
-
getDeclarationOffset
public int getDeclarationOffset()
-
addAnnotation
public void addAnnotation(AnnotationAJ ax)
-
removeAnnotation
public void removeAnnotation(ResolvedType annotationType)
-
addParameterAnnotation
public void addParameterAnnotation(int parameterNumber, AnnotationAJ anno)
-
getAnnotationTypes
public ResolvedType[] getAnnotationTypes()
-
getAnnotations
public AnnotationAJ[] getAnnotations()
-
hasAnnotation
public boolean hasAnnotation(UnresolvedType annotationType)
-
ensureAllLineNumberSetup
public void ensureAllLineNumberSetup()
-
allocateLocal
public int allocateLocal(Type type)
-
allocateLocal
public int allocateLocal(int slots)
-
getMethod
public Method getMethod()
-
markAsChanged
public void markAsChanged()
-
toShortString
public String toShortString()
-
toLongString
public String toLongString(AjAttribute.WeaverVersionInfo weaverVersion)
-
print
public void print(AjAttribute.WeaverVersionInfo weaverVersion)
-
print
public void print(PrintStream out, AjAttribute.WeaverVersionInfo weaverVersion)
-
isStatic
public boolean isStatic()
-
isAbstract
public boolean isAbstract()
-
isBridgeMethod
public boolean isBridgeMethod()
-
addExceptionHandler
public void addExceptionHandler(InstructionHandle start, InstructionHandle end, InstructionHandle handlerStart, ObjectType catchType, boolean highPriority)
-
getAccessFlags
public int getAccessFlags()
-
getAccessFlagsWithoutSynchronized
public int getAccessFlagsWithoutSynchronized()
-
isSynchronized
public boolean isSynchronized()
-
setAccessFlags
public void setAccessFlags(int newFlags)
-
getArgumentTypes
public Type[] getArgumentTypes()
-
getEnclosingClass
public LazyClassGen getEnclosingClass()
-
getMaxLocals
public int getMaxLocals()
-
getName
public String getName()
-
getGenericReturnTypeSignature
public String getGenericReturnTypeSignature()
-
getReturnType
public Type getReturnType()
-
setMaxLocals
public void setMaxLocals(int maxLocals)
-
getBody
public InstructionList getBody()
-
getBodyForPrint
public InstructionList getBodyForPrint()
-
hasBody
public boolean hasBody()
-
getDeclaredExceptions
public String[] getDeclaredExceptions()
-
getClassName
public String getClassName()
-
pack
public MethodGen pack()
-
makeSynthetic
public void makeSynthetic()
-
packBody
public void packBody(MethodGen gen)
-
optimizedPackBody
public void optimizedPackBody(MethodGen gen)
-
isPrivate
public boolean isPrivate()
-
isProtected
public boolean isProtected()
-
isDefault
public boolean isDefault()
-
isPublic
public boolean isPublic()
-
assertGoodBody
public void assertGoodBody()
-
assertGoodBody
public static void assertGoodBody(InstructionList il, String from)
-
getSourceLocation
public ISourceLocation getSourceLocation()
-
getEffectiveSignature
public AjAttribute.EffectiveSignatureAttribute getEffectiveSignature()
-
setEffectiveSignature
public void setEffectiveSignature(ResolvedMember member, Shadow.Kind kind, boolean shouldWeave)
-
getSignature
public String getSignature()
-
getParameterSignature
public String getParameterSignature()
-
getMemberView
public org.aspectj.weaver.bcel.BcelMethod getMemberView()
-
forcePublic
public void forcePublic()
-
getCanInline
public boolean getCanInline()
-
setCanInline
public void setCanInline(boolean canInline)
-
addAttribute
public void addAttribute(Attribute attribute)
-
toTraceString
public String toTraceString()
- Specified by:
toTraceStringin interfaceTraceable
-
getConstantPool
public ConstantPool getConstantPool()
-
isConstructor
public static boolean isConstructor(LazyMethodGen aMethod)
-
-