Java Doc for JavaEntities.java in  » Parser » Rats-Parser-Generators » xtc » lang » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Parser » Rats Parser Generators » xtc.lang 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   xtc.lang.JavaEntities

JavaEntities
final public class JavaEntities (Code)
Common functionality for handling Java entities outside the AST.

Composite types
ExpressionT > GeneralLValueT, GeneralRValueT
GeneralLValueT > LValueT, FieldT, LocalT, ParameterT
LValueT = RValueT
FieldT > VariableT:(FIELD Name WrappedRValueT)
LocalT > VariableT:(LOCAL Name WrappedRValueT)
ParameterT > VariableT:(PARAMETER Name RValueT)
GeneralRValueT > NullT, WrappedRValueT
RValueT > PrimitiveT, ArrayT, WrappedClassT, WrappedInterfaceT
ArrayT = LValueT
ClassT = Name WrappedClassT WrappedInterfaceT* Members
InterfaceT = Name WrappedInterfaceT* Members
Members = FieldT* MethodT* WrappedClassT* WrappedInterfaceT*
MethodT = ReturnT Name ParameterT* WrappedClassT*
NotAValueT > PackageT, AnnotatedT:ReturnT --- annotated with Constants.ATT_NOT_A_VALUE
ReturnT > VoidT, RValueT

Wrapped types
WrappedRValueT > ConstantT:RValueT / RValueT
WrappedClassT > AliasT:Name / AliasT:ClassT / ClassT
WrappedInterfaceT > AliasT:Name / AliasT:InterfaceT / InterfaceT

Basetypes
PrimitiveT > BooleanT, NumberT
NumberT > IntegerT, FloatT
NullT = ConstantT:VoidT

Explanation
Bold font entities are represented explicitly in xtc.type
Super > Sub1, ..., SubN any of the SubI can appear where a Super is expected
Whole = Part1, ..., PartN the Whole consists of all the parts PartI
Whole = Part1 / ... / PartN the Whole consists of one of the parts PartI
Wrapper:Contents the Wrapper must wrap an instance of Contents
Repetee* zero or more occurences

author:
   Martin Hirzel


Inner Class :final public static class JavaTypePrinter extends TypePrinter
Inner Class :static class MiniVisitor_allUsedIdentifiers extends Visitor
Inner Class :static class MiniVisitor_scrubLocations extends Visitor
Inner Class :final static class SuperTypesIter implements Iterator<Type>
Inner Class :final public static class UnicodeUnescaper extends Reader

Field Summary
final public static  Set<String>EMPTY_SET
    


Method Summary
public static  voidaddBaseTypes(SymbolTable tab)
    
public static  List<MethodT>allAbstractMethods(SymbolTable tab, List<File> paths, ClassT clazz)
    
public static  List<MethodT>allMethods(SymbolTable tab, List<File> paths, ClassT base)
    
public static  Set<String>allUsedIdentifiers(GNode ast)
    
public static  TypearrayElementType(ArrayT arrayT)
    
public static  VariableTarrayLengthField()
    
public static  StringbaseTypeToName(Type baseType)
    
public static  ClassOrInterfaceTcanonicalAliasToType(SymbolTable tab, List<File> paths, AliasT alias, boolean mayBeInUnnamedPackage)
    
public static  StringcanonicalName(SymbolTable tab, String simpleName)
    
public static  PackageTcanonicalNameToPackage(SymbolTable tab, String name)
    
public static  TypecanonicalNameToPackageOrType(SymbolTable tab, List<File> paths, String name, boolean mayBeInUnnamedPackage)
    
public static  ClassOrInterfaceTcanonicalNameToType(SymbolTable tab, List<File> paths, String name, boolean mayBeInUnnamedPackage)
    
public static  List<File>classpath(Runtime runtime)
    
public static  booleanconstructorsReturnVoid()
    
public static  booleancouldCreateConcreteSubclass(SymbolTable tab, List<File> paths, ClassT clazz)
     Can only create concrete subclass that implements all abstract methods if there is no pair of abstract methods with the same signature, but different return types.
public static  List<Type>currentImports(SymbolTable tab)
    
public static  MethodTcurrentMethod(SymbolTable tab)
    
public static  PackageTcurrentPackage(SymbolTable tab)
    
public static  ClassOrInterfaceTcurrentType(SymbolTable tab)
    
public static  PackageTdeclaringPackage(SymbolTable tab, Type type)
    
public static  StringdeclaringScopeName(Type type)
    
public static  ClassOrInterfaceTdeclaringType(SymbolTable tab, Type member)
    
public static  Typedereference(Type generalLValue)
    
public static  List<ClassOrInterfaceT>directSuperTypes(SymbolTable tab, List<File> paths, Type sub)
    
public static  StringenterScopeByQualifiedName(SymbolTable tab, String name)
    
public static  List<VariableT>fieldsApplicableAndAccessible(SymbolTable tab, List<File> paths, Type base, boolean parents, String name)
    
public static  List<VariableT>fieldsInherited(SymbolTable tab, List<File> paths, Type base)
    
public static  List<VariableT>fieldsOwn(Type base)
    
public static  List<VariableT>fieldsOwnAndInherited(SymbolTable tab, List<File> paths, Type base)
    
public static  StringfileNameToScopeName(String absolutePath)
    
public static  booleanhasAbstractMethods(SymbolTable tab, List<File> paths, ClassT clazz)
     Does the class or one of its superclasses declare any abstract methods that have not been implemented here or in a superclass? (gosling_et_al_2000 §8.1.1).
public static  booleanhasCircularDependency(SymbolTable tab, List<File> paths, ClassOrInterfaceT type)
     Does the class depend on itself by inheritance or by nesting? (gosling_et_al_2000 §8.1.3).
public static  booleanhasModifier(Type t, String m)
    
static  List<Type>imports(SymbolTable tab, PackageT packageT, String fileName)
    
public static  booleanisAccessible(SymbolTable tab, List<File> paths, Type entity)
    
public static  booleanisAccessibleFromIn(SymbolTable tab, List<File> paths, String scope, Type entity, Type inType)
    
public static  booleanisAccessibleIn(SymbolTable tab, List<File> paths, Type entity, Type inType)
    
public static  booleanisApplicableField(SymbolTable tab, List<File> paths, VariableT field, String name)
    
public static  booleanisApplicableMemberType(Type memberType, String name)
    
public static  booleanisApplicableMethod(SymbolTable tab, List<File> paths, MethodT callee, String name, List<Type> actuals)
    
public static  booleanisCheckedException(SymbolTable tab, List<File> paths, Type exc)
    
public static  booleanisConstantT(Type t)
    
public static  booleanisConstructor(Type declaringType, MethodT maybeConstructor)
    
public static  booleanisExpressionT(Type t)
     ExpressionT > GeneralLValueT, GeneralRValueT.
public static  booleanisFieldT(Type t)
     FieldT = Name WrappedRValueT.
public static  booleanisGeneralLValueT(Type t)
     GeneralLValueT > LValueT, VariableT, FieldT, ParameterT.
public static  booleanisGeneralRValueT(Type t)
     GeneralRValueT > NullT, WrappedRValueT.
public static  booleanisInLocalNameSpace(String name)
    
public static  booleanisInt(Type t)
    
public static  booleanisLValueT(Type t)
     LValueT = RValueT.
public static  booleanisLocalT(Type t)
     LocalT = Name WrappedRValueT.
public static  booleanisNotAValueT(Type t)
    
public static  booleanisNullT(Type t)
     NullT = ConstantT:VoidT.
public static  booleanisParameterT(Type t)
     ParameterT = Name RValueT.
public static  booleanisPrimitiveT(Type t)
     PrimitiveT > BooleanT, NumberT.
public static  booleanisRValueT(Type t)
     RValueT > PrimitiveT, ArrayT, WrappedClassT, WrappedInterfaceT.
public static  booleanisReferenceT(Type t)
    
public static  booleanisReturnT(Type t)
     ReturnT > VoidT, RValueT.
public static  booleanisScopeForMember(String scopeName)
    
public static  booleanisScopeLocal(String scopeName)
    
public static  booleanisScopeNested(String scopeName)
    
public static  booleanisScopeTopLevel(String scopeName)
    
public static  booleanisSuperClass(SymbolTable tab, List<File> paths, Type sup, Type sub)
    
public static  booleanisSuperMethod(SymbolTable tab, List<File> paths, MethodT sup, MethodT sub)
    
public static  booleanisTypeAnonymous(ClassOrInterfaceT t)
    
public static  booleanisTypeInner(ClassOrInterfaceT t)
    
public static  booleanisTypeLocal(ClassOrInterfaceT t)
    
public static  booleanisTypeMember(Type t)
    
public static  booleanisTypeNamed(ClassOrInterfaceT t)
    
public static  booleanisTypeNested(ClassOrInterfaceT t)
    
public static  booleanisTypeTopLevel(ClassOrInterfaceT t)
    
public static  booleanisWrappedClassT(Type t)
     WrappedClassT = AliasT:Name / AliasT:ResolvedClassT / ResolvedClassT.
public static  booleanisWrappedInterfaceT(Type t)
     WrappedInterfaceT = AliasT:Name / AliasT:ResolvedInterfaceT / ResolvedInterfaceT.
public static  booleanisWrappedRValueT(Type t)
     WrappedRValueT = ConstantT:RValueT / RValueT.
public static  StringjavaAstToString(Node ast)
    
public static  GNodejavaStringToAst(String production, String escaped, boolean simple)
    
public static  TypejavaStringToType(String code)
    
public static  GNodejavaTypeToAst(SymbolTable tab, Type type)
    
public static  StringjavaTypeToString(SymbolTable tab, Type type)
    
static  ClassOrInterfaceTlookupImport(SymbolTable tab, List<File> paths, AliasT alias)
     Resolve single-type import.
public static  List<Type>memberTypesApplicableAndAccessible(SymbolTable tab, List<File> paths, ClassOrInterfaceT base, boolean parents, String name)
    
public static  List<Type>memberTypesInherited(SymbolTable tab, List<File> paths, ClassOrInterfaceT base)
    
public static  List<Type>memberTypesOwn(SymbolTable tab, List<File> paths, ClassOrInterfaceT base)
    
public static  List<Type>memberTypesOwnAndInherited(SymbolTable tab, List<File> paths, ClassOrInterfaceT base)
    
public static  StringmethodSymbolFromAst(GNode ast)
    
public static  StringmethodSymbolFromConstructor(Constructor method)
    
public static  StringmethodSymbolFromMethod(Method method)
    
public static  List<MethodT>methodsApplicableAndAccessible(SymbolTable tab, List<File> paths, Type base, boolean parents, String name, List<Type> actuals)
     All methods in the base type that are accessible, and whose formals accept the actuals after method invocation conversion (gosling_et_al_2000 §15.12.2.1).
public static  List<MethodT>methodsInherited(SymbolTable tab, List<File> paths, Type base, boolean includeOverridden)
    
public static  List<MethodT>methodsOwn(Type base)
    
public static  List<MethodT>methodsOwnAndInherited(SymbolTable tab, List<File> paths, Type base)
    
public static  StringmodifierToName(Attribute modifier)
    
public static  StringmodifiersToString(Type type)
    
public static  TypenameToBaseType(String name)
    
public static  AttributenameToModifier(String name)
    
public static  MethodTnewRawConstructor(Type base, List<Type> formals, List<Type> exceptions)
    
public static  TypenotAValueIfClassOrInterface(Type t)
    
public static  PackageTpackageDotPackage(SymbolTable tab, PackageT base, String selector)
    
public static  TypepackageDotPackageOrType(SymbolTable tab, List<File> paths, PackageT base, String selector)
    
static  ClassOrInterfaceTpackageDotType(SymbolTable tab, List<File> paths, PackageT base, String selector)
    
static  ClassOrInterfaceTpackageDotType_noSource(SymbolTable tab, PackageT base, String selector)
    
public static  StringpackageNameToScopeName(String canonicalName)
    
public static  StringqNameWithDollars(SymbolTable tab, ClassOrInterfaceT t)
    
public static  ClassOrInterfaceTqualifiedAliasToType(SymbolTable tab, List<File> paths, String scope, AliasT alias)
    
public static  List<ClassOrInterfaceT>qualifiedAliasesToTypes(SymbolTable tab, List<File> paths, String scope, List<AliasT> aliases)
    
public static  TypequalifiedNameToPackageOrType(SymbolTable tab, List<File> paths, String scope, String name)
    
public static  ClassOrInterfaceTqualifiedNameToType(SymbolTable tab, List<File> paths, String scope, String name)
    
public static  TyperesolveIfAlias(SymbolTable tab, List<File> paths, String scope, Type typeThatMayBeAlias)
    
public static  MethodTresolveIfAliasMethod(SymbolTable tab, List<File> paths, MethodT method)
    
public static  TyperesolveToRValue(Type t0)
    
static  ClassOrInterfaceTresolveToRawClassOrInterfaceT(Type t)
    
public static  WrappedTresolveToRawLValue(Type t)
    
public static  TyperesolveToRawRValue(Type t)
    
public static  TyperesolveToValue(AnnotatedT notAValue)
    
public static  booleanruntimeAssrt(Runtime runtime, Node n, boolean cond, String msgFormat, Object... msgArgs)
    
public static  booleansameMethodReturnType(MethodT m1, MethodT m2)
    
public static  booleansameMethodSignature(MethodT m1, MethodT m2)
    
static  StringscopeName(PackageT packageT, String fileName)
    
public static  GNodescrubLocations(GNode result)
    
public static  TypesimpleNameToExpression(SymbolTable tab, List<File> paths, String scope, String name)
    
public static  PackageTsimpleNameToPackage(SymbolTable tab, String name)
    
public static  TypesimpleNameToPackageOrType(SymbolTable tab, List<File> paths, String scope, String name)
    
public static  TypesimpleNameToPackageOrTypeOrExpression(SymbolTable tab, List<File> paths, String scope, String name)
    
public static  ClassOrInterfaceTsimpleNameToType(SymbolTable tab, List<File> paths, String scope, String name)
    
public static  Set<String>stringSet(Object s)
    
public static  ClassTtClass(SymbolTable tab)
    
public static  InterfaceTtCloneable(SymbolTable tab)
    
public static  ClassTtError(SymbolTable tab)
    
public static  ClassTtObject(SymbolTable tab)
    
public static  AliasTtObjectAlias(SymbolTable tab)
    
public static  ClassTtRuntimeException(SymbolTable tab)
    
public static  InterfaceTtSerializable(SymbolTable tab)
    
public static  ClassTtString(SymbolTable tab)
    
public static  ClassTtThrowable(SymbolTable tab)
    
public static  StringtypeDeclString(SymbolTable tab, Object obj)
    
public static  VariableTtypeDotField(SymbolTable tab, List<File> paths, Type base, boolean parents, String name)
    
public static  MethodTtypeDotMethod(SymbolTable tab, List<File> paths, Type baseT, boolean parents, String selector, List<Type> actuals)
    
public static  ClassOrInterfaceTtypeDotType(SymbolTable tab, List<File> paths, ClassOrInterfaceT base, boolean parents, String selector)
    
public static  TypetypeDotTypeOrField(SymbolTable tab, List<File> paths, Type base, boolean parents, String selector)
    
public static  List<Type>typeList(List list)
    
public static  StringtypeToDescriptor(SymbolTable tab, Type type)
     A descriptor is a JVM-internal string representation of a type of a field or method, see JVM specification §4.3.
static  StringtypeToScopeName(Type type)
    
public static  StringtypeToSimpleName(Type type)
    
public static  StringtypeToString(SymbolTable tab, boolean showDetails, Type type)
    
public static  TypetypeWithDimensions(Type componentT, int dim)
    
public static  StringunicodeUnescape(String in)
    
public static  booleanzeroLiteral(String s)
    

Field Detail
EMPTY_SET
final public static Set<String> EMPTY_SET(Code)





Method Detail
addBaseTypes
public static void addBaseTypes(SymbolTable tab)(Code)



allAbstractMethods
public static List<MethodT> allAbstractMethods(SymbolTable tab, List<File> paths, ClassT clazz)(Code)



allMethods
public static List<MethodT> allMethods(SymbolTable tab, List<File> paths, ClassT base)(Code)



allUsedIdentifiers
public static Set<String> allUsedIdentifiers(GNode ast)(Code)



arrayElementType
public static Type arrayElementType(ArrayT arrayT)(Code)



arrayLengthField
public static VariableT arrayLengthField()(Code)



baseTypeToName
public static String baseTypeToName(Type baseType)(Code)



canonicalAliasToType
public static ClassOrInterfaceT canonicalAliasToType(SymbolTable tab, List<File> paths, AliasT alias, boolean mayBeInUnnamedPackage)(Code)



canonicalName
public static String canonicalName(SymbolTable tab, String simpleName)(Code)



canonicalNameToPackage
public static PackageT canonicalNameToPackage(SymbolTable tab, String name)(Code)



canonicalNameToPackageOrType
public static Type canonicalNameToPackageOrType(SymbolTable tab, List<File> paths, String name, boolean mayBeInUnnamedPackage)(Code)



canonicalNameToType
public static ClassOrInterfaceT canonicalNameToType(SymbolTable tab, List<File> paths, String name, boolean mayBeInUnnamedPackage)(Code)



classpath
public static List<File> classpath(Runtime runtime)(Code)



constructorsReturnVoid
public static boolean constructorsReturnVoid()(Code)



couldCreateConcreteSubclass
public static boolean couldCreateConcreteSubclass(SymbolTable tab, List<File> paths, ClassT clazz)(Code)
Can only create concrete subclass that implements all abstract methods if there is no pair of abstract methods with the same signature, but different return types.



currentImports
public static List<Type> currentImports(SymbolTable tab)(Code)



currentMethod
public static MethodT currentMethod(SymbolTable tab)(Code)



currentPackage
public static PackageT currentPackage(SymbolTable tab)(Code)



currentType
public static ClassOrInterfaceT currentType(SymbolTable tab)(Code)



declaringPackage
public static PackageT declaringPackage(SymbolTable tab, Type type)(Code)



declaringScopeName
public static String declaringScopeName(Type type)(Code)



declaringType
public static ClassOrInterfaceT declaringType(SymbolTable tab, Type member)(Code)



dereference
public static Type dereference(Type generalLValue)(Code)



directSuperTypes
public static List<ClassOrInterfaceT> directSuperTypes(SymbolTable tab, List<File> paths, Type sub)(Code)



enterScopeByQualifiedName
public static String enterScopeByQualifiedName(SymbolTable tab, String name)(Code)



fieldsApplicableAndAccessible
public static List<VariableT> fieldsApplicableAndAccessible(SymbolTable tab, List<File> paths, Type base, boolean parents, String name)(Code)



fieldsInherited
public static List<VariableT> fieldsInherited(SymbolTable tab, List<File> paths, Type base)(Code)



fieldsOwn
public static List<VariableT> fieldsOwn(Type base)(Code)



fieldsOwnAndInherited
public static List<VariableT> fieldsOwnAndInherited(SymbolTable tab, List<File> paths, Type base)(Code)



fileNameToScopeName
public static String fileNameToScopeName(String absolutePath)(Code)



hasAbstractMethods
public static boolean hasAbstractMethods(SymbolTable tab, List<File> paths, ClassT clazz)(Code)
Does the class or one of its superclasses declare any abstract methods that have not been implemented here or in a superclass? (gosling_et_al_2000 §8.1.1).



hasCircularDependency
public static boolean hasCircularDependency(SymbolTable tab, List<File> paths, ClassOrInterfaceT type)(Code)
Does the class depend on itself by inheritance or by nesting? (gosling_et_al_2000 §8.1.3).



hasModifier
public static boolean hasModifier(Type t, String m)(Code)



imports
static List<Type> imports(SymbolTable tab, PackageT packageT, String fileName)(Code)



isAccessible
public static boolean isAccessible(SymbolTable tab, List<File> paths, Type entity)(Code)
Is it allowed to use the entity from the current scope of the symbol table (gosling_et_al_2000 §6.6)?



isAccessibleFromIn
public static boolean isAccessibleFromIn(SymbolTable tab, List<File> paths, String scope, Type entity, Type inType)(Code)



isAccessibleIn
public static boolean isAccessibleIn(SymbolTable tab, List<File> paths, Type entity, Type inType)(Code)



isApplicableField
public static boolean isApplicableField(SymbolTable tab, List<File> paths, VariableT field, String name)(Code)



isApplicableMemberType
public static boolean isApplicableMemberType(Type memberType, String name)(Code)



isApplicableMethod
public static boolean isApplicableMethod(SymbolTable tab, List<File> paths, MethodT callee, String name, List<Type> actuals)(Code)



isCheckedException
public static boolean isCheckedException(SymbolTable tab, List<File> paths, Type exc)(Code)



isConstantT
public static boolean isConstantT(Type t)(Code)



isConstructor
public static boolean isConstructor(Type declaringType, MethodT maybeConstructor)(Code)



isExpressionT
public static boolean isExpressionT(Type t)(Code)
ExpressionT > GeneralLValueT, GeneralRValueT.



isFieldT
public static boolean isFieldT(Type t)(Code)
FieldT = Name WrappedRValueT.



isGeneralLValueT
public static boolean isGeneralLValueT(Type t)(Code)
GeneralLValueT > LValueT, VariableT, FieldT, ParameterT.



isGeneralRValueT
public static boolean isGeneralRValueT(Type t)(Code)
GeneralRValueT > NullT, WrappedRValueT.



isInLocalNameSpace
public static boolean isInLocalNameSpace(String name)(Code)



isInt
public static boolean isInt(Type t)(Code)



isLValueT
public static boolean isLValueT(Type t)(Code)
LValueT = RValueT.



isLocalT
public static boolean isLocalT(Type t)(Code)
LocalT = Name WrappedRValueT.



isNotAValueT
public static boolean isNotAValueT(Type t)(Code)
NotAValueT > PackageT, AnnotatedT:ReturnT --- annotated with Constants.ATT_NOT_A_VALUE



isNullT
public static boolean isNullT(Type t)(Code)
NullT = ConstantT:VoidT.



isParameterT
public static boolean isParameterT(Type t)(Code)
ParameterT = Name RValueT.



isPrimitiveT
public static boolean isPrimitiveT(Type t)(Code)
PrimitiveT > BooleanT, NumberT.



isRValueT
public static boolean isRValueT(Type t)(Code)
RValueT > PrimitiveT, ArrayT, WrappedClassT, WrappedInterfaceT.



isReferenceT
public static boolean isReferenceT(Type t)(Code)
Is t a class, interface, or array type (gosling_et_al_2000 §4.3)?



isReturnT
public static boolean isReturnT(Type t)(Code)
ReturnT > VoidT, RValueT.



isScopeForMember
public static boolean isScopeForMember(String scopeName)(Code)



isScopeLocal
public static boolean isScopeLocal(String scopeName)(Code)



isScopeNested
public static boolean isScopeNested(String scopeName)(Code)



isScopeTopLevel
public static boolean isScopeTopLevel(String scopeName)(Code)



isSuperClass
public static boolean isSuperClass(SymbolTable tab, List<File> paths, Type sup, Type sub)(Code)



isSuperMethod
public static boolean isSuperMethod(SymbolTable tab, List<File> paths, MethodT sup, MethodT sub)(Code)
Note: not symmetric!



isTypeAnonymous
public static boolean isTypeAnonymous(ClassOrInterfaceT t)(Code)



isTypeInner
public static boolean isTypeInner(ClassOrInterfaceT t)(Code)



isTypeLocal
public static boolean isTypeLocal(ClassOrInterfaceT t)(Code)



isTypeMember
public static boolean isTypeMember(Type t)(Code)



isTypeNamed
public static boolean isTypeNamed(ClassOrInterfaceT t)(Code)



isTypeNested
public static boolean isTypeNested(ClassOrInterfaceT t)(Code)



isTypeTopLevel
public static boolean isTypeTopLevel(ClassOrInterfaceT t)(Code)



isWrappedClassT
public static boolean isWrappedClassT(Type t)(Code)
WrappedClassT = AliasT:Name / AliasT:ResolvedClassT / ResolvedClassT.



isWrappedInterfaceT
public static boolean isWrappedInterfaceT(Type t)(Code)
WrappedInterfaceT = AliasT:Name / AliasT:ResolvedInterfaceT / ResolvedInterfaceT.



isWrappedRValueT
public static boolean isWrappedRValueT(Type t)(Code)
WrappedRValueT = ConstantT:RValueT / RValueT.



javaAstToString
public static String javaAstToString(Node ast)(Code)



javaStringToAst
public static GNode javaStringToAst(String production, String escaped, boolean simple) throws Exception(Code)



javaStringToType
public static Type javaStringToType(String code)(Code)



javaTypeToAst
public static GNode javaTypeToAst(SymbolTable tab, Type type)(Code)



javaTypeToString
public static String javaTypeToString(SymbolTable tab, Type type)(Code)



lookupImport
static ClassOrInterfaceT lookupImport(SymbolTable tab, List<File> paths, AliasT alias)(Code)
Resolve single-type import. The name is canonical (gosling_et_al_2000 Section 7.5.1) and denotes a class or interface. The only thing that is uncertain is where the package ends and where the nested types start. For example, in a.b.c, it could be that the package is a.b and the class is c, or that the package is a, the outer class is b, and the inner class is c. There can be no ambiguity (gosling_et_al_2000 Section 6.4), because a package must not have a top-level type and a subpackage of the same name.



memberTypesApplicableAndAccessible
public static List<Type> memberTypesApplicableAndAccessible(SymbolTable tab, List<File> paths, ClassOrInterfaceT base, boolean parents, String name)(Code)



memberTypesInherited
public static List<Type> memberTypesInherited(SymbolTable tab, List<File> paths, ClassOrInterfaceT base)(Code)



memberTypesOwn
public static List<Type> memberTypesOwn(SymbolTable tab, List<File> paths, ClassOrInterfaceT base)(Code)



memberTypesOwnAndInherited
public static List<Type> memberTypesOwnAndInherited(SymbolTable tab, List<File> paths, ClassOrInterfaceT base)(Code)



methodSymbolFromAst
public static String methodSymbolFromAst(GNode ast)(Code)



methodSymbolFromConstructor
public static String methodSymbolFromConstructor(Constructor method)(Code)



methodSymbolFromMethod
public static String methodSymbolFromMethod(Method method)(Code)



methodsApplicableAndAccessible
public static List<MethodT> methodsApplicableAndAccessible(SymbolTable tab, List<File> paths, Type base, boolean parents, String name, List<Type> actuals)(Code)
All methods in the base type that are accessible, and whose formals accept the actuals after method invocation conversion (gosling_et_al_2000 §15.12.2.1).



methodsInherited
public static List<MethodT> methodsInherited(SymbolTable tab, List<File> paths, Type base, boolean includeOverridden)(Code)



methodsOwn
public static List<MethodT> methodsOwn(Type base)(Code)



methodsOwnAndInherited
public static List<MethodT> methodsOwnAndInherited(SymbolTable tab, List<File> paths, Type base)(Code)



modifierToName
public static String modifierToName(Attribute modifier)(Code)



modifiersToString
public static String modifiersToString(Type type)(Code)



nameToBaseType
public static Type nameToBaseType(String name)(Code)



nameToModifier
public static Attribute nameToModifier(String name)(Code)



newRawConstructor
public static MethodT newRawConstructor(Type base, List<Type> formals, List<Type> exceptions)(Code)



notAValueIfClassOrInterface
public static Type notAValueIfClassOrInterface(Type t)(Code)



packageDotPackage
public static PackageT packageDotPackage(SymbolTable tab, PackageT base, String selector)(Code)



packageDotPackageOrType
public static Type packageDotPackageOrType(SymbolTable tab, List<File> paths, PackageT base, String selector)(Code)



packageDotType
static ClassOrInterfaceT packageDotType(SymbolTable tab, List<File> paths, PackageT base, String selector)(Code)



packageDotType_noSource
static ClassOrInterfaceT packageDotType_noSource(SymbolTable tab, PackageT base, String selector)(Code)



packageNameToScopeName
public static String packageNameToScopeName(String canonicalName)(Code)



qNameWithDollars
public static String qNameWithDollars(SymbolTable tab, ClassOrInterfaceT t)(Code)



qualifiedAliasToType
public static ClassOrInterfaceT qualifiedAliasToType(SymbolTable tab, List<File> paths, String scope, AliasT alias)(Code)



qualifiedAliasesToTypes
public static List<ClassOrInterfaceT> qualifiedAliasesToTypes(SymbolTable tab, List<File> paths, String scope, List<AliasT> aliases)(Code)



qualifiedNameToPackageOrType
public static Type qualifiedNameToPackageOrType(SymbolTable tab, List<File> paths, String scope, String name)(Code)



qualifiedNameToType
public static ClassOrInterfaceT qualifiedNameToType(SymbolTable tab, List<File> paths, String scope, String name)(Code)



resolveIfAlias
public static Type resolveIfAlias(SymbolTable tab, List<File> paths, String scope, Type typeThatMayBeAlias)(Code)



resolveIfAliasMethod
public static MethodT resolveIfAliasMethod(SymbolTable tab, List<File> paths, MethodT method)(Code)



resolveToRValue
public static Type resolveToRValue(Type t0)(Code)



resolveToRawClassOrInterfaceT
static ClassOrInterfaceT resolveToRawClassOrInterfaceT(Type t)(Code)



resolveToRawLValue
public static WrappedT resolveToRawLValue(Type t)(Code)



resolveToRawRValue
public static Type resolveToRawRValue(Type t)(Code)



resolveToValue
public static Type resolveToValue(AnnotatedT notAValue)(Code)



runtimeAssrt
public static boolean runtimeAssrt(Runtime runtime, Node n, boolean cond, String msgFormat, Object... msgArgs)(Code)



sameMethodReturnType
public static boolean sameMethodReturnType(MethodT m1, MethodT m2)(Code)



sameMethodSignature
public static boolean sameMethodSignature(MethodT m1, MethodT m2)(Code)



scopeName
static String scopeName(PackageT packageT, String fileName)(Code)



scrubLocations
public static GNode scrubLocations(GNode result)(Code)



simpleNameToExpression
public static Type simpleNameToExpression(SymbolTable tab, List<File> paths, String scope, String name)(Code)



simpleNameToPackage
public static PackageT simpleNameToPackage(SymbolTable tab, String name)(Code)



simpleNameToPackageOrType
public static Type simpleNameToPackageOrType(SymbolTable tab, List<File> paths, String scope, String name)(Code)



simpleNameToPackageOrTypeOrExpression
public static Type simpleNameToPackageOrTypeOrExpression(SymbolTable tab, List<File> paths, String scope, String name)(Code)



simpleNameToType
public static ClassOrInterfaceT simpleNameToType(SymbolTable tab, List<File> paths, String scope, String name)(Code)



stringSet
public static Set<String> stringSet(Object s)(Code)



tClass
public static ClassT tClass(SymbolTable tab)(Code)



tCloneable
public static InterfaceT tCloneable(SymbolTable tab)(Code)



tError
public static ClassT tError(SymbolTable tab)(Code)



tObject
public static ClassT tObject(SymbolTable tab)(Code)



tObjectAlias
public static AliasT tObjectAlias(SymbolTable tab)(Code)



tRuntimeException
public static ClassT tRuntimeException(SymbolTable tab)(Code)



tSerializable
public static InterfaceT tSerializable(SymbolTable tab)(Code)



tString
public static ClassT tString(SymbolTable tab)(Code)



tThrowable
public static ClassT tThrowable(SymbolTable tab)(Code)



typeDeclString
public static String typeDeclString(SymbolTable tab, Object obj)(Code)



typeDotField
public static VariableT typeDotField(SymbolTable tab, List<File> paths, Type base, boolean parents, String name)(Code)



typeDotMethod
public static MethodT typeDotMethod(SymbolTable tab, List<File> paths, Type baseT, boolean parents, String selector, List<Type> actuals)(Code)



typeDotType
public static ClassOrInterfaceT typeDotType(SymbolTable tab, List<File> paths, ClassOrInterfaceT base, boolean parents, String selector)(Code)



typeDotTypeOrField
public static Type typeDotTypeOrField(SymbolTable tab, List<File> paths, Type base, boolean parents, String selector)(Code)



typeList
public static List<Type> typeList(List list)(Code)



typeToDescriptor
public static String typeToDescriptor(SymbolTable tab, Type type)(Code)
A descriptor is a JVM-internal string representation of a type of a field or method, see JVM specification §4.3.



typeToScopeName
static String typeToScopeName(Type type)(Code)



typeToSimpleName
public static String typeToSimpleName(Type type)(Code)



typeToString
public static String typeToString(SymbolTable tab, boolean showDetails, Type type)(Code)



typeWithDimensions
public static Type typeWithDimensions(Type componentT, int dim)(Code)



unicodeUnescape
public static String unicodeUnescape(String in)(Code)



zeroLiteral
public static boolean zeroLiteral(String s)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.