Griffon 1.2.0

org.codehaus.griffon.compiler
[Java] Class ResolveVisitor.ConstructedClassWithPackage

java.lang.Object
  org.codehaus.groovy.ast.ASTNode
      org.codehaus.groovy.ast.AnnotatedNode
          org.codehaus.groovy.ast.ClassNode
              org.codehaus.griffon.compiler.ResolveVisitor.ConstructedClassWithPackage

private static class ResolveVisitor.ConstructedClassWithPackage
extends ClassNode

we use ConstructedClassWithPackage to limit the resolving the compiler does when combining package names and class names. The idea that if we use a package, then we do not want to replace the '.' with a '$' for the package part, only for the class name part. There is also the case of a imported class, so this logic can't be done in these cases...


Field Summary
String className

String prefix

 
Fields inherited from class ClassNode
EMPTY_ARRAY, THIS, SUPER, V1_1, V1_2, V1_3, V1_4, V1_5, V1_6, V1_7, ACC_PUBLIC, ACC_PRIVATE, ACC_PROTECTED, ACC_STATIC, ACC_FINAL, ACC_SUPER, ACC_SYNCHRONIZED, ACC_VOLATILE, ACC_BRIDGE, ACC_VARARGS, ACC_TRANSIENT, ACC_NATIVE, ACC_INTERFACE, ACC_ABSTRACT, ACC_STRICT, ACC_SYNTHETIC, ACC_ANNOTATION, ACC_ENUM, ACC_DEPRECATED, T_BOOLEAN, T_CHAR, T_FLOAT, T_DOUBLE, T_BYTE, T_SHORT, T_INT, T_LONG, F_NEW, F_FULL, F_APPEND, F_CHOP, F_SAME, F_SAME1, TOP, INTEGER, FLOAT, DOUBLE, LONG, NULL, UNINITIALIZED_THIS, INVOKEDYNAMIC_OWNER, NOP, ACONST_NULL, ICONST_M1, ICONST_0, ICONST_1, ICONST_2, ICONST_3, ICONST_4, ICONST_5, LCONST_0, LCONST_1, FCONST_0, FCONST_1, FCONST_2, DCONST_0, DCONST_1, BIPUSH, SIPUSH, LDC, ILOAD, LLOAD, FLOAD, DLOAD, ALOAD, IALOAD, LALOAD, FALOAD, DALOAD, AALOAD, BALOAD, CALOAD, SALOAD, ISTORE, LSTORE, FSTORE, DSTORE, ASTORE, IASTORE, LASTORE, FASTORE, DASTORE, AASTORE, BASTORE, CASTORE, SASTORE, POP, POP2, DUP, DUP_X1, DUP_X2, DUP2, DUP2_X1, DUP2_X2, SWAP, IADD, LADD, FADD, DADD, ISUB, LSUB, FSUB, DSUB, IMUL, LMUL, FMUL, DMUL, IDIV, LDIV, FDIV, DDIV, IREM, LREM, FREM, DREM, INEG, LNEG, FNEG, DNEG, ISHL, LSHL, ISHR, LSHR, IUSHR, LUSHR, IAND, LAND, IOR, LOR, IXOR, LXOR, IINC, I2L, I2F, I2D, L2I, L2F, L2D, F2I, F2L, F2D, D2I, D2L, D2F, I2B, I2C, I2S, LCMP, FCMPL, FCMPG, DCMPL, DCMPG, IFEQ, IFNE, IFLT, IFGE, IFGT, IFLE, IF_ICMPEQ, IF_ICMPNE, IF_ICMPLT, IF_ICMPGE, IF_ICMPGT, IF_ICMPLE, IF_ACMPEQ, IF_ACMPNE, GOTO, JSR, RET, TABLESWITCH, LOOKUPSWITCH, IRETURN, LRETURN, FRETURN, DRETURN, ARETURN, RETURN, GETSTATIC, PUTSTATIC, GETFIELD, PUTFIELD, INVOKEVIRTUAL, INVOKESPECIAL, INVOKESTATIC, INVOKEINTERFACE, INVOKEDYNAMIC, NEW, NEWARRAY, ANEWARRAY, ARRAYLENGTH, ATHROW, CHECKCAST, INSTANCEOF, MONITORENTER, MONITOREXIT, MULTIANEWARRAY, IFNULL, IFNONNULL
 
Constructor Summary
ResolveVisitor.ConstructedClassWithPackage(String pkg, String name)

 
Method Summary
String getName()

boolean hasPackageName()

private static String normalize(String pkg)

String setName(String name)

 
Methods inherited from class ClassNode
getProperty, equals, toString, hashCode, getModifiers, isInterface, isArray, getComponentType, getName, getPackage, getInterfaces, getEnclosingMethod, getFields, getMethods, getMethods, getField, getMethod, getDeclaredMethods, getDeclaredConstructors, getDeclaredField, getDeclaredMethod, isEnum, getAnnotations, getAnnotations, getProperties, setName, getPackageName, getUnresolvedName, getModule, setModifiers, addConstructor, addConstructor, hasProperty, hasMethod, setModule, setGenericsTypes, getTypeClass, redirect, setRedirect, makeArray, setGenericsPlaceHolder, getGenericsTypes, isResolved, addField, addField, addMethod, addMethod, setUnresolvedSuperClass, setInterfaces, renameField, isScriptBody, isScript, isSyntheticPublic, setSyntheticPublic, isPrimaryClassNode, getCompileUnit, setEnclosingMethod, isUsingGenerics, setSuperClass, getMixins, getAbstractMethods, getDeclaredMethodsMap, getAllDeclaredMethods, getAllInterfaces, getSuperClass, addFieldFirst, addFieldFirst, addProperty, addProperty, hasDeclaredMethod, addSyntheticMethod, addInterface, addMixin, getOuterField, getOuterClass, addObjectInitializerStatements, getObjectInitializerStatements, addStaticInitializerStatements, positionStmtsAfterEnumInitStmts, isDerivedFrom, isDerivedFromGroovyObject, implementsInterface, declaresInterface, getUnresolvedSuperClass, getUnresolvedSuperClass, getUnresolvedInterfaces, getUnresolvedInterfaces, getNameWithoutPackage, visitContents, getGetterMethod, getSetterMethod, getSetterMethod, isStaticClass, setStaticClass, setScriptBody, setScript, hasPossibleMethod, tryFindPossibleMethod, hasPossibleStaticMethod, hasPackageName, setAnnotated, isAnnotated, isGenericsPlaceHolder, setUsingGenerics, getPlainNodeReference, isAnnotationDefinition, addTransform, getTransforms, removeField, getInnerClasses, isRedirectNode, isSynthetic, getDeclaringClass, addAnnotation, addAnnotations, setSynthetic, setDeclaringClass, hasNoRealSourcePosition, setHasNoRealSourcePosition, getLineNumber, visit, getColumnNumber, getText, setLineNumber, setColumnNumber, getLastLineNumber, setLastLineNumber, getLastColumnNumber, setLastColumnNumber, setSourcePosition, getNodeMetaData, copyNodeMetaData, setNodeMetaData, putNodeMetaData, removeNodeMetaData, wait, wait, wait, getClass, notify, notifyAll
 
Methods inherited from class AnnotatedNode
isSynthetic, getDeclaringClass, getAnnotations, getAnnotations, addAnnotation, addAnnotations, setSynthetic, setDeclaringClass, hasNoRealSourcePosition, setHasNoRealSourcePosition, getLineNumber, visit, getColumnNumber, getText, setLineNumber, setColumnNumber, getLastLineNumber, setLastLineNumber, getLastColumnNumber, setLastColumnNumber, setSourcePosition, getNodeMetaData, copyNodeMetaData, setNodeMetaData, putNodeMetaData, removeNodeMetaData, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

className

String className


prefix

String prefix


 
Constructor Detail

ResolveVisitor.ConstructedClassWithPackage

public ResolveVisitor.ConstructedClassWithPackage(String pkg, String name)


 
Method Detail

getName

public String getName()


hasPackageName

public boolean hasPackageName()


normalize

private static String normalize(String pkg)


setName

public String setName(String name)


 

Groovy Documentation