Method Summary |
|
public void | addAttribute(Attribute att) Add the specified attribute. |
public Type | annotate() Annotate this type. |
public Type | attribute(Attribute att) Annotate this type with the specified attribute. |
public Type | attribute(List<Attribute> attributes) Annotate this type with the specified attributes.
See Also: Type.attribute(Attribute) Parameters: attributes - The attributes. |
public Type | attribute(Type template) Annotate this type with the specified type's attributes.
Parameters: template - The type whose annotations to copy. |
public List<Attribute> | attributes() Get this type's attributes. |
public static Type | cast(Object type) Cast the specified object to a type.
Parameters: type - The type as an object. |
protected void | checkNotSealed() Ensure that this type is not sealed. |
public Type | constant(boolean value) Set this type's constant.
See Also: Type.constant(Object) Parameters: value - The value. |
public Type | constant(Object value) Set this type's constant.
Parameters: value - The value. |
abstract public Type | copy() Create a deep copy of this type. |
public static List<T> | copy(List<T> types) Copy the specified list of types. |
public Type | deannotate() Deannotate this type. |
public Attribute | getAttribute(String name) Get the attribute with the specified name. |
public Attribute | getAttribute(String name, boolean forward) Get the attribute with the specified name.
Parameters: name - The name. Parameters: forward - The flag for whether to forward this method acrosswrapped types. |
public Constant | getConstant() Get this type's or any wrapped type's constant. |
public Constant | getConstant(boolean forward) Get this type's or any wrapped type's constant.
Parameters: forward - The flag for whether to forward this method acrosswrapped types. |
public Language | getLanguage() Get this type's or any wrapped type's language. |
public Language | getLanguage(boolean forward) Get this type's or any wrapped type's language.
Parameters: forward - The flag for whether to forward this method acrosswrapped types. |
public Location | getLocation() Get this type's or any wrapped type's location. |
public Location | getLocation(boolean forward) Get this type's or any wrapped type's location.
Parameters: forward - The flag for whether to forward this method acrosswrapped types. |
public String | getScope() Get this type's or any wrapped type's scope. |
public String | getScope(boolean forward) Get this type's or any wrapped type's scope.
Parameters: forward - The flag for whether to forward this method acrosswrapped types. |
public Reference | getShape() Get this type's or any wrapped type's shape. |
public Reference | getShape(boolean forward) Get this type's or any wrapped type's shape.
Parameters: forward - The flag for whether to forward this method acrosswrapped types. |
public boolean | hasAlias() Determine whether this type contains an alias. |
public boolean | hasAnnotated() Determine whether this type has an annotated type. |
public boolean | hasAttribute(Attribute att) Determine whether this type or any wrapped type has the specified
attribute. |
public boolean | hasAttribute(Attribute att, boolean forward) Determine whether this type or any wrapped type has the specified
attribute.
Parameters: att - The attribute. Parameters: forward - The flag for whether to forward this method acrosswrapped types. |
public boolean | hasAttribute(String name) Determine whether this type has an attribute with the specified
name. |
public boolean | hasAttribute(String name, boolean forward) Determine whether this type has an attribute with the specified
name. |
public boolean | hasAttributes() Determine whether this type has any attributes. |
public boolean | hasConstant() Determine whether this type or any wrapped type has a constant. |
public boolean | hasConstant(boolean forward) Determine whether this type or any wrapped type has a constant.
Parameters: forward - The flag for whether to forward this method acrosswrapped types. |
public boolean | hasEnum() Determine whether this type contains an enum. |
public boolean | hasEnumerator() Determine whether this type contains an enumerator. |
public boolean | hasError() Determine whether this type has an error. |
public boolean | hasInstantiated() Determine whether this type has an instantiated type. |
public boolean | hasLanguage() Determine whether this type or any wrapped type has a language. |
public boolean | hasLanguage(boolean forward) Determine whether this type or any wrapped type has a language.
Parameters: forward - The flag for whether to forward this method acrosswrapped types. |
public boolean | hasLocation() Determine whether this type or any wrapped type has a location. |
public boolean | hasLocation(boolean forward) Determine whether this type or any wrapped type has a location.
Parameters: forward - The flag for whether to forward this method acrosswrapped types. |
public boolean | hasParameterized() Determine whether this type has a parameterized type. |
public boolean | hasScope() Determine whether this type or any wrapped type has a scope. |
public boolean | hasScope(boolean forward) Determine whether this type or any wrapped type has a scope.
Parameters: forward - The flag for whether to forward this method acrosswrapped types. |
public boolean | hasShape() Determine whether this type or any wrapped type has a shape. |
public boolean | hasShape(boolean forward) Determine whether this type or any wrapped type has a shape.
Parameters: forward - The flag for whether to forward this method acrosswrapped types. |
public boolean | hasStructOrUnion() Determine whether this type contains a struct or union. |
public boolean | hasTag(Tag tag) Determine whether this type has the specified tag. |
public boolean | hasTagged() Determine whether this type is tagged. |
public boolean | hasVariable() Determine whether this type contains a variable. |
public boolean | hasWTag(Tag tag) Determine whether this wrapped type has the specified tag.
Invocations to this method are not forwarded across
wrapped types. |
public boolean | isAlias() Determine whether this type is an alias. |
public boolean | isAnnotated() Determine whether this type is annotated. |
public boolean | isArray() Determine whether this type is an array. |
public boolean | isBoolean() Determine whether this type is a boolean. |
public boolean | isClass() Determine whether this type is a class. |
public boolean | isConcrete() Determine whether this type is concrete. |
public boolean | isDerived() Determine whether this type is derived. |
public boolean | isEnum() Determine whether this type is an enum. |
public boolean | isEnumerator() Determine whether this type is an enumerator. |
public boolean | isError() Determine whether this type is an error. |
public boolean | isFloat() Determine whether this type is a float. |
public boolean | isFunction() Determine whether this type is a function. |
public boolean | isInstantiated() Determine whether this type is instantiated. |
public boolean | isInteger() Determine whether this type is an integer. |
public boolean | isInterface() Determine whether this type is an interface. |
public boolean | isInternal() Determine whether this type is internal. |
public boolean | isLabel() Determine whether this type is a label. |
public boolean | isMethod() Determine whether this type is a method. |
public boolean | isNumber() Determine whether this type is a number. |
public boolean | isPackage() Determine whether this type is a package. |
public boolean | isParameter() Determine whether this type is a type parameter. |
public boolean | isParameterized() Determine whether this type is parameterized. |
public boolean | isPointer() Determine whether this type is a pointer. |
public boolean | isSealed() Determine whether this type is sealed. |
public boolean | isStruct() Determine whether this type is a struct. |
public boolean | isTuple() Determine whether this type is an tuple. |
public boolean | isUnion() Determine whether this type is a union. |
public boolean | isUnit() Determine whether this type is the unit type. |
public boolean | isVariable() Determine whether this type is a variable. |
public boolean | isVariant() Determine whether this type is an variant. |
public boolean | isVoid() Determine whether this type is void. |
public boolean | isWildcard() Determine whether this type is a wildcard. |
public boolean | isWrapped() Determine whether this type is wrapped. |
public Type | language(Language language) Set this type's language.
Parameters: language - The language. |
public Type | locate(Location location) Set this type's location.
Parameters: location - The location. |
public Type | locate(Locatable locatable) Set this type's location.
Parameters: locatable - The locatable. |
public void | mark(Node node) Mark the specified node as having this type. |
public Set<String> | properties() |
public boolean | removeAttribute(Attribute att) Remove the specified attribute. |
public Object | removeProperty(String name) |
public Type | resolve() Resolve this type. |
public static Type | resolve(Object type) Resolve the specified object as type.
Parameters: type - The type. |
public Type | scope(String scope) Set this type's scope.
Parameters: scope - The scope. |
public Type | seal() Seal this type. |
public static List<T> | seal(List<T> types) Seal the specified list of types. |
public void | setLocation(Location location) |
public void | setLocation(Locatable locatable) |
public Object | setProperty(String name, Object value) |
public Type | shape(boolean isStatic, String name) Set this type's shape to a variable reference with the specified
name.
See Also: StaticReference See Also: DynamicReference See Also: Type.shape(Reference) Parameters: isStatic - The flag for whether the variable is static. Parameters: name - The variable name. |
public Type | shape(Reference shape) Set this type's shape.
Parameters: shape - The shape represented as a reference. |
abstract public Tag | tag() Get this type's tag. |
public AliasT | toAlias() Get this type as an alias. |
public AnnotatedT | toAnnotated() Get this type as an annotated type. |
public ArrayT | toArray() Get this type as an array. |
public BooleanT | toBoolean() Get this type as a boolean. |
public ClassT | toClass() Get this type as a class. |
public EnumT | toEnum() Get this type as an enum. |
public EnumeratorT | toEnumerator() Get this type as an enumerator. |
public FloatT | toFloat() Get this type as a float. |
public FunctionT | toFunction() Get this type as a function. |
public InstantiatedT | toInstantiated() Get this type as an instantiated type. |
public IntegerT | toInteger() Get this type as an integer. |
public InterfaceT | toInterface() Get this type as an interface. |
public InternalT | toInternal() Get this type as an internal type. |
public LabelT | toLabel() Get this type as a label. |
public MethodT | toMethod() Get this type as a method. |
public NumberT | toNumber() Get this type as a number. |
public PackageT | toPackage() Get this type as a package. |
public Parameter | toParameter() Get this type as a type parameter. |
public ParameterizedT | toParameterized() Get this type as a parameterized type. |
public PointerT | toPointer() Get this type as a pointer. |
public StructT | toStruct() Get this type as a struct. |
public Tagged | toTagged() Get this type as a tagged type. |
public TupleT | toTuple() Get this type as an tuple. |
public UnionT | toUnion() Get this type as a union. |
public UnitT | toUnit() Get this type as a unit type. |
public VariableT | toVariable() Get this type as a variable. |
public VariantT | toVariant() Get this type as an variant. |
public VoidT | toVoid() Get this type as a void type. |
public Wildcard | toWildcard() Get this type as a wildcard. |
public WrappedT | toWrapped() Get this type as a wrapped type. |
public void | trace(Runtime runtime) Trace this type to the runtime's console. |
public Tag | wtag() Get this wrapped type's tag. |