jasm.lang
Class ClassFile.Field

java.lang.Object
  extended by jasm.lang.ClassFile.Field
Enclosing class:
ClassFile

public static class ClassFile.Field
extends java.lang.Object


Field Summary
protected  java.util.ArrayList<BytecodeAttribute> attributes
           
protected  java.util.List<Modifier> modifiers
           
protected  java.lang.String name
           
protected  JvmType type
           
 
Constructor Summary
ClassFile.Field(java.lang.String name, JvmType type, java.util.List<Modifier> modifiers)
           
 
Method Summary
 BytecodeAttribute attribute(java.lang.String name)
           
 java.util.List<BytecodeAttribute> attributes()
           
 java.lang.Object constant()
           
 boolean hasModifier(java.lang.Class modClass)
          Check whether this field has one of the "base" modifiers (e.g.
 boolean isAbstract()
          Check whether this field is abstract
 boolean isConstant()
           
 boolean isFinal()
          Check whether this field is final
 boolean isPrivate()
          Check whether this field is private
 boolean isProtected()
          Check whether this field is protected
 boolean isPublic()
          Check whether this field is public
 boolean isStatic()
          Check whether this field is static
 boolean isSynthetic()
          Check whether this method is synthetic
 java.util.List<Modifier> modifiers()
           
 java.lang.String name()
           
 void setName(java.lang.String n)
           
 void setType(JvmType t)
           
 JvmType type()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

type

protected JvmType type

modifiers

protected java.util.List<Modifier> modifiers

attributes

protected java.util.ArrayList<BytecodeAttribute> attributes
Constructor Detail

ClassFile.Field

public ClassFile.Field(java.lang.String name,
                       JvmType type,
                       java.util.List<Modifier> modifiers)
Method Detail

name

public java.lang.String name()

setName

public void setName(java.lang.String n)

type

public JvmType type()

setType

public void setType(JvmType t)

modifiers

public java.util.List<Modifier> modifiers()

attributes

public java.util.List<BytecodeAttribute> attributes()

attribute

public BytecodeAttribute attribute(java.lang.String name)

hasModifier

public boolean hasModifier(java.lang.Class modClass)
Check whether this field has one of the "base" modifiers (e.g. static, public, private, etc). These are found in Modifier.ACC_

Parameters:
modifier -
Returns:
true if it does!

isAbstract

public boolean isAbstract()
Check whether this field is abstract


isFinal

public boolean isFinal()
Check whether this field is final


isStatic

public boolean isStatic()
Check whether this field is static


isPublic

public boolean isPublic()
Check whether this field is public


isProtected

public boolean isProtected()
Check whether this field is protected


isPrivate

public boolean isPrivate()
Check whether this field is private


isSynthetic

public boolean isSynthetic()
Check whether this method is synthetic


isConstant

public boolean isConstant()

constant

public java.lang.Object constant()


Copyright © 2013 David J. Pearce. All Rights Reserved.