Package com.strobel.assembler.metadata
Class ParameterDefinition
- java.lang.Object
-
- com.strobel.assembler.metadata.ParameterReference
-
- com.strobel.assembler.metadata.ParameterDefinition
-
- All Implemented Interfaces:
IAnnotationsProvider,IMetadataTypeMember
public final class ParameterDefinition extends ParameterReference implements IAnnotationsProvider
User: Mike Strobel Date: 1/6/13 Time: 5:42 PM
-
-
Field Summary
Fields Modifier and Type Field Description private Collection<CustomAnnotation>_customAnnotationsprivate java.util.List<CustomAnnotation>_customAnnotationsViewprivate TypeReference_declaringTypeprivate long_flagsprivate IMethodSignature_methodprivate int_sizeprivate int_slot
-
Constructor Summary
Constructors Constructor Description ParameterDefinition(int slot, TypeReference parameterType)ParameterDefinition(int slot, java.lang.String name, TypeReference parameterType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<CustomAnnotation>getAnnotations()protected Collection<CustomAnnotation>getAnnotationsInternal()TypeReferencegetDeclaringType()longgetFlags()IMethodSignaturegetMethod()intgetSize()intgetSlot()booleanhasAnnotations()booleanisFinal()booleanisMandated()booleanisSynthetic()private java.util.List<CustomAnnotation>populateCustomAnnotations()ParameterDefinitionresolve()(package private) voidsetDeclaringType(TypeReference declaringType)(package private) voidsetFlags(long flags)(package private) voidsetMethod(IMethodSignature method)protected voidsetParameterType(TypeReference parameterType)(package private) voidsetSlot(int slot)-
Methods inherited from class com.strobel.assembler.metadata.ParameterReference
getName, getParameterType, getPosition, hasName, setName, setPosition, toString
-
-
-
-
Field Detail
-
_customAnnotations
private final Collection<CustomAnnotation> _customAnnotations
-
_customAnnotationsView
private final java.util.List<CustomAnnotation> _customAnnotationsView
-
_size
private final int _size
-
_slot
private int _slot
-
_method
private IMethodSignature _method
-
_declaringType
private TypeReference _declaringType
-
_flags
private long _flags
-
-
Constructor Detail
-
ParameterDefinition
public ParameterDefinition(int slot, TypeReference parameterType)
-
ParameterDefinition
public ParameterDefinition(int slot, java.lang.String name, TypeReference parameterType)
-
-
Method Detail
-
getSize
public final int getSize()
-
getSlot
public final int getSlot()
-
getFlags
public final long getFlags()
-
setFlags
final void setFlags(long flags)
-
setSlot
final void setSlot(int slot)
-
getMethod
public final IMethodSignature getMethod()
-
setMethod
final void setMethod(IMethodSignature method)
-
isFinal
public final boolean isFinal()
-
isMandated
public final boolean isMandated()
-
isSynthetic
public final boolean isSynthetic()
-
hasAnnotations
public boolean hasAnnotations()
- Specified by:
hasAnnotationsin interfaceIAnnotationsProvider
-
getAnnotations
public java.util.List<CustomAnnotation> getAnnotations()
- Specified by:
getAnnotationsin interfaceIAnnotationsProvider
-
getAnnotationsInternal
protected final Collection<CustomAnnotation> getAnnotationsInternal()
-
getDeclaringType
public final TypeReference getDeclaringType()
- Specified by:
getDeclaringTypein interfaceIMetadataTypeMember- Specified by:
getDeclaringTypein classParameterReference
-
setParameterType
protected void setParameterType(TypeReference parameterType)
- Overrides:
setParameterTypein classParameterReference
-
setDeclaringType
final void setDeclaringType(TypeReference declaringType)
-
resolve
public ParameterDefinition resolve()
- Specified by:
resolvein classParameterReference
-
populateCustomAnnotations
private java.util.List<CustomAnnotation> populateCustomAnnotations()
-
-