org.modeshape.sequencer.java
Class ArrayTypeFieldMetadataSequencer

java.lang.Object
  extended by org.modeshape.sequencer.java.ArrayTypeFieldMetadataSequencer
All Implemented Interfaces:
JavaSourceCndDefinition

public class ArrayTypeFieldMetadataSequencer
extends Object
implements JavaSourceCndDefinition

Sequencer for array types.


Field Summary
 
Fields inherited from interface org.modeshape.sequencer.java.JavaSourceCndDefinition
JAVA_ANNOTATION_CHILD_NODE, JAVA_ANNOTATION_DECLARATION_CHILD_NODE, JAVA_ANNOTATION_TYPE_CHILD_NODE, JAVA_ARRAY_TYPE_CHILD_NODE, JAVA_ARRAY_TYPE_DESCRIPTION, JAVA_ARRAY_TYPE_MODIFIER_CHILD_NODE, JAVA_ARRAY_TYPE_NAME, JAVA_ARRAY_TYPE_VARIABLE, JAVA_CLASS_DECLARATION_CHILD_NODE, JAVA_COMPILATION_UNIT_NODE, JAVA_COMPILATION_UNIT_PRIMARY_TYPE, JAVA_CONSTRUCTOR_CHILD_NODE, JAVA_CONSTRUCTOR_DECLARATION_CHILD_NODE, JAVA_CONSTRUCTOR_NAME, JAVA_FIELD_CHILD_NODE, JAVA_FIELD_TYPE_CHILD_NODE, JAVA_FORMAL_PARAMETER, JAVA_IMPORT_CHILD_NODE, JAVA_IMPORT_DECLARATION_CHILD_NODE, JAVA_MARKER_ANNOTATION_CHILD_NODE, JAVA_MARKER_ANNOTATION_NAME, JAVA_METHOD_CHILD_NODE, JAVA_METHOD_DECLARATION_CHILD_NODE, JAVA_METHOD_NAME, JAVA_MODIFIER_CHILD_NODE, JAVA_MODIFIER_DECLARATION_CHILD_NODE, JAVA_MODIFIER_NAME, JAVA_NORMAL_ANNOTATION_CHILD_NODE, JAVA_NORMAL_CLASS_CHILD_NODE, JAVA_NORMAL_CLASS_DECLARATION_CHILD_NODE, JAVA_NORMAL_CLASS_NAME, JAVA_NORMALANNOTATION_NAME, JAVA_ON_DEMAND_IMPORT_CHILD_NODE, JAVA_ON_DEMAND_IMPORT_NAME, JAVA_ON_DEMAND_IMPORT_TYPE_DECLARATION_CHILD_NODE, JAVA_PACKAGE_CHILD_NODE, JAVA_PACKAGE_DECLARATION_CHILD_NODE, JAVA_PACKAGE_NAME, JAVA_PARAMETER, JAVA_PARAMETER_NAME, JAVA_PARAMETERIZED_TYPE_CHILD_NODE, JAVA_PARAMETERIZED_TYPE_DESCRIPTION, JAVA_PARAMETERIZED_TYPE_MODIFIER_CHILD_NODE, JAVA_PARAMETERIZED_TYPE_NAME, JAVA_PARAMETERIZED_TYPE_VARIABLE, JAVA_PRIMITIVE_TYPE_CHILD_NODE, JAVA_PRIMITIVE_TYPE_NAME, JAVA_PRIMITIVE_TYPE_VARIABLE, JAVA_RETURN_TYPE, JAVA_SIMPLE_TYPE_CHILD_NODE, JAVA_SIMPLE_TYPE_DESCRIPTION, JAVA_SIMPLE_TYPE_MODIFIER_CHILD_NODE, JAVA_SIMPLE_TYPE_NAME, JAVA_SIMPLE_TYPE_VARIABLE, JAVA_SINGLE_ANNOTATION_NAME, JAVA_SINGLE_ELEMENT_ANNOTATION_CHILD_NODE, JAVA_SINGLE_IMPORT_CHILD_NODE, JAVA_SINGLE_IMPORT_NAME, JAVA_SINGLE_IMPORT_TYPE_DECLARATION_CHILD_NODE, JAVA_TYPE_CHILD_NODE, JAVA_UNIT_TYPE_CHILD_NODE, JAVA_VARIABLE, JAVA_VARIABLE_NAME, SLASH
 
Constructor Summary
ArrayTypeFieldMetadataSequencer()
           
 
Method Summary
static String createRootPath(String basePath)
          the root path.
static void sequenceFieldMemberData(ArrayTypeFieldMetadata arrayTypeFieldMetadata, PathFactory pathFactory, NameFactory nameFactory, SequencerOutput output, String path, int index)
          Sequence member data of array type.
static void sequenceMethodFormalParam(SequencerOutput output, NameFactory nameFactory, PathFactory pathFactory, ArrayTypeFieldMetadata arrayTypeFieldMetadata, String methodParamRootPath)
          Sequence all formal parameters of a method.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayTypeFieldMetadataSequencer

public ArrayTypeFieldMetadataSequencer()
Method Detail

sequenceMethodFormalParam

public static void sequenceMethodFormalParam(SequencerOutput output,
                                             NameFactory nameFactory,
                                             PathFactory pathFactory,
                                             ArrayTypeFieldMetadata arrayTypeFieldMetadata,
                                             String methodParamRootPath)
Sequence all formal parameters of a method.

Parameters:
output - - the SequencerOutput.
nameFactory - - the NameFactory.
pathFactory - - the PathFactory.
arrayTypeFieldMetadata - - the meta data of a array type.
methodParamRootPath - - Base path of the method declaration.

createRootPath

public static String createRootPath(String basePath)
the root path.

Parameters:
basePath - - the base path to use to build a root path.
Returns:
the root path, that is compose from other base path.

sequenceFieldMemberData

public static void sequenceFieldMemberData(ArrayTypeFieldMetadata arrayTypeFieldMetadata,
                                           PathFactory pathFactory,
                                           NameFactory nameFactory,
                                           SequencerOutput output,
                                           String path,
                                           int index)
Sequence member data of array type.

Parameters:
arrayTypeFieldMetadata -
pathFactory -
nameFactory -
output -
path -
index -


Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.