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>
_customAnnotations
private java.util.List<CustomAnnotation>
_customAnnotationsView
private TypeReference
_declaringType
private long
_flags
private IMethodSignature
_method
private int
_size
private 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()
TypeReference
getDeclaringType()
long
getFlags()
IMethodSignature
getMethod()
int
getSize()
int
getSlot()
boolean
hasAnnotations()
boolean
isFinal()
boolean
isMandated()
boolean
isSynthetic()
private java.util.List<CustomAnnotation>
populateCustomAnnotations()
ParameterDefinition
resolve()
(package private) void
setDeclaringType(TypeReference declaringType)
(package private) void
setFlags(long flags)
(package private) void
setMethod(IMethodSignature method)
protected void
setParameterType(TypeReference parameterType)
(package private) void
setSlot(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:
hasAnnotations
in interfaceIAnnotationsProvider
-
getAnnotations
public java.util.List<CustomAnnotation> getAnnotations()
- Specified by:
getAnnotations
in interfaceIAnnotationsProvider
-
getAnnotationsInternal
protected final Collection<CustomAnnotation> getAnnotationsInternal()
-
getDeclaringType
public final TypeReference getDeclaringType()
- Specified by:
getDeclaringType
in interfaceIMetadataTypeMember
- Specified by:
getDeclaringType
in classParameterReference
-
setParameterType
protected void setParameterType(TypeReference parameterType)
- Overrides:
setParameterType
in classParameterReference
-
setDeclaringType
final void setDeclaringType(TypeReference declaringType)
-
resolve
public ParameterDefinition resolve()
- Specified by:
resolve
in classParameterReference
-
populateCustomAnnotations
private java.util.List<CustomAnnotation> populateCustomAnnotations()
-
-