public class WordTypes extends Object
| Constructor and Description |
|---|
WordTypes(MetaAccessProvider metaAccess,
JavaKind wordKind) |
| Modifier and Type | Method and Description |
|---|---|
JavaKind |
asKind(JavaType type)
|
boolean |
ensureGraphContainsNoWordTypeReferences(StructuredGraph graph)
Verify that the given graph does not reference word types in their object representation.
|
ResolvedJavaType |
getWordImplType() |
JavaKind |
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(JavaType 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.
|
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(ValueNode node)
public boolean isWord(JavaType type)
public JavaKind asKind(JavaType type)
public JavaKind getWordKind()
public ResolvedJavaType getWordImplType()
public boolean ensureGraphContainsNoWordTypeReferences(StructuredGraph graph)