Login | Register
My pages Projects Community openCollabNet

The Tigris site will receive a major upgrade the evening of Monday, December 1, beginning at 8:30 pm PST. Downtime is projected to be about ten hours. Further details in the announcement


jmt.codebase
Class AttributeFactory

java.lang.Object
  |
  +--jmt.codebase.AttributeFactory

public final class AttributeFactory
extends java.lang.Object

A static factory providing methods to create various Attribute instances.

Author:
Martin Kersten
See Also:
Attribute, LinesOfCodeAttribute, UsedReferencesAttribute

Constructor Summary
AttributeFactory()
           
 
Method Summary
static LinesOfCodeAttribute createLinesOfCodeAttribute(int count)
          Returns a LinesOfCodeAttribute instance with the given line count.
static UsedReferencesAttribute createUsedReferencesAttribute(ClassReference[] classRefs, MethodReference[] methodRefs, FieldReference[] fieldRefs)
          Returns a UsedReferencesAttribute instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeFactory

public AttributeFactory()
Method Detail

createLinesOfCodeAttribute

public static LinesOfCodeAttribute createLinesOfCodeAttribute(int count)
Returns a LinesOfCodeAttribute instance with the given line count.

Returns:
A LinesOfCodeAttribute instance with the given line count

createUsedReferencesAttribute

public static UsedReferencesAttribute createUsedReferencesAttribute(ClassReference[] classRefs,
                                                                    MethodReference[] methodRefs,
                                                                    FieldReference[] fieldRefs)
Returns a UsedReferencesAttribute instance.

Parameters:
classRefs - The used class references
methodRefs - The used method references
fieldRefs - The used field references
Returns:
The UsedReferencesAttribute instance