Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

ch.epfl.lamp.smartanalysis
Class DepField  view DepField download DepField.java

java.lang.Object
  extended bych.epfl.lamp.smartanalysis.Reference
      extended bych.epfl.lamp.smartanalysis.DepField
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DepField.InheritedField

public class DepField
extends Reference

Describes a class field.

Version:
1.0

Nested Class Summary
static class DepField.InheritedField
          Represent an Field herited from a superclass/interface.
static class DepField.UnknownFieldRef
          A reference to a field, but we cannot determine the field origine.
 
Nested classes inherited from class ch.epfl.lamp.smartanalysis.Reference
Reference.UnknownReference
 
Field Summary
private  java.lang.Object constantValue
           
private  DepType type
           
 
Fields inherited from class ch.epfl.lamp.smartanalysis.Reference
accessRight, belongTo
 
Constructor Summary
protected DepField(java.lang.String name, DepType type, DepClass owner, int access)
          Creates a new DepField instance.
 
Method Summary
 java.lang.Object getConstantValue()
          get the Constant value of this field, as defined by JVMS 2nd edition 4.7.2.
 java.lang.String getIdentifier()
          get the identifier for that field: name+type
static java.lang.String getIdentifier(java.lang.String name, java.lang.String type)
          get an identifier for this field from its name and type.
 DepType getType()
          get the type of that field.
 void setConstantValue(java.lang.Object o)
          Set the Constant value of this field, as defined by JVMS 2nd edition 4.7.2.
 
Methods inherited from class ch.epfl.lamp.smartanalysis.Reference
addUser, addUsers, delete, equals, getAccess, getName, getOwner, getUsers, isAbstract, isDefault, isFinal, isInterface, isLessAccessible, isLessAccessible, isMoreAccessible, isMoreAccessible, isNative, isPrivate, isProtected, isPublic, isStatic, isSynchronized, isTransient, isVolatile, removeFinal, removeStatic, removeUser, removeVolatile, setAbstract, setAccess, setDefault, setFinal, setNative, setPrivate, setProtected, setPublic, setStatic, setSynchronized, setTransient, setVolatile, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

private DepType type

constantValue

private java.lang.Object constantValue
Constructor Detail

DepField

protected DepField(java.lang.String name,
                   DepType type,
                   DepClass owner,
                   int access)
Creates a new DepField instance.

Method Detail

setConstantValue

public void setConstantValue(java.lang.Object o)
Set the Constant value of this field, as defined by JVMS 2nd edition 4.7.2.


getConstantValue

public java.lang.Object getConstantValue()
get the Constant value of this field, as defined by JVMS 2nd edition 4.7.2.


getType

public DepType getType()
get the type of that field.


getIdentifier

public java.lang.String getIdentifier()
get the identifier for that field: name+type

Specified by:
getIdentifier in class Reference

getIdentifier

public static java.lang.String getIdentifier(java.lang.String name,
                                             java.lang.String type)
get an identifier for this field from its name and type.