public class WordTypes extends Object
Modifier and Type | Field and Description |
---|---|
private ResolvedJavaType |
barrieredAccessType
Resolved type for
BarrieredAccess . |
private ResolvedJavaType |
objectAccessType
Resolved type for
ObjectAccess . |
private ResolvedJavaType |
wordBaseType
Resolved type for
WordBase . |
private ResolvedJavaType |
wordImplType
Resolved type for
Word . |
private Kind |
wordKind |
Constructor and Description |
---|
WordTypes(MetaAccessProvider metaAccess,
Kind wordKind) |
Modifier and Type | Method and Description |
---|---|
Kind |
asKind(JavaType type)
|
ResolvedJavaType |
getWordImplType() |
Kind |
getWordKind() |
ResolvedJavaMethod |
getWordOperation(ResolvedJavaMethod targetMethod,
ResolvedJavaType callingContextType)
Gets the method annotated with
Word.Operation based on a given method that represents a
word operation (but may not necessarily have the annotation). |
Stamp |
getWordStamp(ResolvedJavaType type)
Gets the stamp for a given word type.
|
boolean |
isWord(ResolvedJavaType type)
Determines if a given type is a word type.
|
boolean |
isWord(ValueNode node)
Determines if a given node has a word type.
|
boolean |
isWordOperation(ResolvedJavaMethod targetMethod)
Determines if a given method denotes a word operation.
|
private final ResolvedJavaType wordBaseType
WordBase
.private final ResolvedJavaType wordImplType
Word
.private final ResolvedJavaType objectAccessType
ObjectAccess
.private final ResolvedJavaType barrieredAccessType
BarrieredAccess
.public WordTypes(MetaAccessProvider metaAccess, Kind wordKind)
public boolean isWordOperation(ResolvedJavaMethod targetMethod)
public ResolvedJavaMethod getWordOperation(ResolvedJavaMethod targetMethod, ResolvedJavaType callingContextType)
Word.Operation
based on a given method that represents a
word operation (but may not necessarily have the annotation).callingContextType
- the type from which
targetMethod
is invokedWord.Operation
method resolved for targetMethod
if anypublic boolean isWord(ResolvedJavaType type)
public Kind getWordKind()
public Stamp getWordStamp(ResolvedJavaType type)
public ResolvedJavaType getWordImplType()