org.modeshape.sequencer.java
Class SimpleTypeMetadataSequencer

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

public class SimpleTypeMetadataSequencer
extends Object
implements JavaSourceCndDefinition

The sequencer of the SimpleTypeFieldMetadata


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
 
Method Summary
static String createRootPath(String basePath)
          the root path.
static Path createSimpleTypeParamPath(PathFactory pathFactory, String rootPath)
          Create the path of parameter.
static void sequenceConstructorSimpleTypeName(SimpleTypeFieldMetadata simpleTypeFieldMetadata, String rootPath, SequencerOutput output, NameFactory nameFactory, PathFactory pathFactory)
          Sequence the type name of the simple type.
static void sequenceMethodFormalParam(SequencerOutput output, NameFactory nameFactory, PathFactory pathFactory, SimpleTypeFieldMetadata simpleTypeFieldMetadata, String methodParamRootPath)
           
static void sequenceMethodReturnType(SequencerOutput output, NameFactory nameFactory, PathFactory pathFactory, SimpleTypeFieldMetadata simpleTypeFieldMetadata, String methodRootPath)
          Sequence the return type of a method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sequenceMethodFormalParam

public static void sequenceMethodFormalParam(SequencerOutput output,
                                             NameFactory nameFactory,
                                             PathFactory pathFactory,
                                             SimpleTypeFieldMetadata simpleTypeFieldMetadata,
                                             String methodParamRootPath)
Parameters:
output -
nameFactory -
pathFactory -
simpleTypeFieldMetadata -
methodParamRootPath -

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.

sequenceConstructorSimpleTypeName

public static void sequenceConstructorSimpleTypeName(SimpleTypeFieldMetadata simpleTypeFieldMetadata,
                                                     String rootPath,
                                                     SequencerOutput output,
                                                     NameFactory nameFactory,
                                                     PathFactory pathFactory)
Sequence the type name of the simple type.

Parameters:
simpleTypeFieldMetadata - - the SimpleTypeFieldMetadata.
rootPath - - the path.
output - - the SequencerOutput.
nameFactory - - the NameFactory.
pathFactory - - the PathFactory.

createSimpleTypeParamPath

public static Path createSimpleTypeParamPath(PathFactory pathFactory,
                                             String rootPath)
Create the path of parameter.

Parameters:
pathFactory - - The PathFactory.
rootPath - - the root path need to build the path.
Returns:
the path of a variable node.

sequenceMethodReturnType

public static void sequenceMethodReturnType(SequencerOutput output,
                                            NameFactory nameFactory,
                                            PathFactory pathFactory,
                                            SimpleTypeFieldMetadata simpleTypeFieldMetadata,
                                            String methodRootPath)
Sequence the return type of a method.

Parameters:
output -
nameFactory -
pathFactory -
simpleTypeFieldMetadata -
methodRootPath -


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