antlraux package
v0.2.1

antlraux.context.types
Class AttributeType

java.lang.Object
  |
  +--antlraux.context.types.CommonType
        |
        +--antlraux.context.types.DeclaredType
              |
              +--antlraux.context.types.AttributeType
All Implemented Interfaces:
ClassMemberType, ModifiedType, Type

public class AttributeType
extends DeclaredType
implements ClassMemberType

This is a basic implementation of a class' attribute.


Field Summary
protected  Type classType
          The class that holds the attribute
protected  Type type
          The attribute's type
 
Fields inherited from class antlraux.context.types.DeclaredType
modifiers
 
Fields inherited from class antlraux.context.types.CommonType
name, tag
 
Fields inherited from interface antlraux.context.types.Type
DEFAULT_NAME, DEFAULT_TAG
 
Constructor Summary
AttributeType(int tag, java.lang.String name, Type type, ClassType classType)
           
 
Method Summary
 Type getClassType()
           
 Type getType()
           
 void setClassType(Type classType)
           
 void setType(Type t)
           
 java.lang.String toString()
           
 
Methods inherited from class antlraux.context.types.DeclaredType
addModifier, clearModifiers, compareModifiers, equals, hasModifier, modifiers, modifiersSet
 
Methods inherited from class antlraux.context.types.CommonType
getName, getTag, setName, setTag
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface antlraux.context.types.Type
equals, getName, getTag, setName, setTag
 

Field Detail

type

protected Type type
The attribute's type


classType

protected Type classType
The class that holds the attribute

Constructor Detail

AttributeType

public AttributeType(int tag,
                     java.lang.String name,
                     Type type,
                     ClassType classType)
Method Detail

setType

public void setType(Type t)

getType

public Type getType()

setClassType

public void setClassType(Type classType)
Specified by:
setClassType in interface ClassMemberType

getClassType

public Type getClassType()
Specified by:
getClassType in interface ClassMemberType

toString

public java.lang.String toString()
Specified by:
toString in interface Type
Overrides:
toString in class DeclaredType

antlraux package
v0.2.1

Created by Enrique José García Cota