test_class.file: lang-java/src/test/java/org/eclipse/steady/java/JarAnalyzerTest.java
test_class.identifier: JarAnalyzerTest
test_case.body: @Test
    public void testIsJavaIdentifier() {
      assertEquals(false, JarAnalyzer.isJavaIdentifier("1.0"));
      assertEquals(true, JarAnalyzer.isJavaIdentifier("Foo"));
      assertEquals(false, JarAnalyzer.isJavaIdentifier("{Foo"));
    }
test_case.class_method_signature: JarAnalyzerTest.testIsJavaIdentifier()
test_case.full_signature: @Test public void testIsJavaIdentifier()
test_case.identifier: testIsJavaIdentifier
test_case.invocations: assertEquals isJavaIdentifier assertEquals isJavaIdentifier assertEquals isJavaIdentifier
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testIsJavaIdentifier()
focal_class.declarator: log = org.apache.logging.log4j.LogManager.getLogger()
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = org.apache.logging.log4j.LogManager.getLogger();
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: CLASSPOOL = ClassPool.getDefault()
focal_class.modifier: private static final
focal_class.original_string: private static final ClassPool CLASSPOOL = ClassPool.getDefault();
focal_class.type: ClassPool
focal_class.var_name: CLASSPOOL
focal_class.declarator: APP_CTX = null
focal_class.modifier: private static
focal_class.original_string: private static Application APP_CTX = null;
focal_class.type: Application
focal_class.var_name: APP_CTX
focal_class.declarator: constructs = null
focal_class.modifier: protected
focal_class.original_string: protected Set<ConstructId> constructs = null;
focal_class.type: Set<ConstructId>
focal_class.var_name: constructs
focal_class.declarator: constructBodies = null
focal_class.modifier: private
focal_class.original_string: private Map<ConstructId, Construct> constructBodies = null;
focal_class.type: Map<ConstructId, Construct>
focal_class.var_name: constructBodies
focal_class.declarator: classNames = new HashSet<String>()
focal_class.modifier: private
focal_class.original_string: private Set<String> classNames = new HashSet<String>();
focal_class.type: Set<String>
focal_class.var_name: classNames
focal_class.declarator: url = null
focal_class.modifier: protected
focal_class.original_string: protected String url = null;
focal_class.type: String
focal_class.var_name: url
focal_class.declarator: jar = null
focal_class.modifier: protected
focal_class.original_string: protected JarFile jar = null;
focal_class.type: JarFile
focal_class.var_name: jar
focal_class.declarator: instrument =
        false
focal_class.modifier: protected
focal_class.original_string: protected boolean instrument =
        false;
focal_class.type: boolean
focal_class.var_name: instrument
focal_class.declarator: rename = false
focal_class.modifier: protected
focal_class.original_string: protected boolean rename = false;
focal_class.type: boolean
focal_class.var_name: rename
focal_class.declarator: classCount = 0
focal_class.modifier: protected
focal_class.original_string: protected int classCount = 0;
focal_class.type: int
focal_class.var_name: classCount
focal_class.declarator: enumCount = 0
focal_class.modifier: protected
focal_class.original_string: protected int enumCount = 0;
focal_class.type: int
focal_class.var_name: enumCount
focal_class.declarator: interfaceCount = 0
focal_class.modifier: protected
focal_class.original_string: protected int interfaceCount = 0;
focal_class.type: int
focal_class.var_name: interfaceCount
focal_class.declarator: instrumentedClasses = new HashMap<JavaId, ClassVisitor>()
focal_class.modifier: private
focal_class.original_string: private Map<JavaId, ClassVisitor> instrumentedClasses = new HashMap<JavaId, ClassVisitor>();
focal_class.type: Map<JavaId, ClassVisitor>
focal_class.var_name: instrumentedClasses
focal_class.declarator: workDir = null
focal_class.modifier: protected
focal_class.original_string: protected Path workDir = null;
focal_class.type: Path
focal_class.var_name: workDir
focal_class.declarator: libraryId = null
focal_class.modifier: private
focal_class.original_string: private LibraryId libraryId = null;
focal_class.type: LibraryId
focal_class.var_name: libraryId
focal_class.declarator: bundledLibraryIds = new HashSet<LibraryId>()
focal_class.modifier: private
focal_class.original_string: private Set<LibraryId> bundledLibraryIds = new HashSet<LibraryId>();
focal_class.type: Set<LibraryId>
focal_class.var_name: bundledLibraryIds
focal_class.declarator: jarWriter = null
focal_class.modifier: protected
focal_class.original_string: protected JarWriter jarWriter = null;
focal_class.type: JarWriter
focal_class.var_name: jarWriter
focal_class.declarator: parent = null
focal_class.modifier: private
focal_class.original_string: private JarAnalyzer parent = null;
focal_class.type: JarAnalyzer
focal_class.var_name: parent
focal_class.declarator: instrControl = null
focal_class.modifier: protected
focal_class.original_string: protected InstrumentationControl instrControl = null;
focal_class.type: InstrumentationControl
focal_class.var_name: instrControl
focal_class.file: lang-java/src/main/java/org/eclipse/steady/java/JarAnalyzer.java
focal_class.identifier: JarAnalyzer
focal_class.interfaces: implements Callable<FileAnalyzer>, JarEntryWriter, FileAnalyzer
focal_class.class_method_signature: JarAnalyzer.getSupportedFileExtensions()
focal_class.full_signature: @Override public String[] getSupportedFileExtensions()
focal_class.identifier: getSupportedFileExtensions
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String[]
focal_class.signature: String[] getSupportedFileExtensions()
focal_class.class_method_signature: JarAnalyzer.canAnalyze(File _file)
focal_class.full_signature: @Override public final boolean canAnalyze(File _file)
focal_class.identifier: canAnalyze
focal_class.modifiers: @Override public final
focal_class.parameters: (File _file)
focal_class.return: boolean
focal_class.signature: boolean canAnalyze(File _file)
focal_class.class_method_signature: JarAnalyzer.analyze(final File _file)
focal_class.full_signature: @Override public synchronized void analyze(final File _file)
focal_class.identifier: analyze
focal_class.modifiers: @Override public synchronized
focal_class.parameters: (final File _file)
focal_class.return: void
focal_class.signature: void analyze(final File _file)
focal_class.class_method_signature: JarAnalyzer.setInstrument(boolean _instrument)
focal_class.full_signature: public void setInstrument(boolean _instrument)
focal_class.identifier: setInstrument
focal_class.modifiers: public
focal_class.parameters: (boolean _instrument)
focal_class.return: void
focal_class.signature: void setInstrument(boolean _instrument)
focal_class.class_method_signature: JarAnalyzer.getPath()
focal_class.full_signature: public Path getPath()
focal_class.identifier: getPath
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Path
focal_class.signature: Path getPath()
focal_class.class_method_signature: JarAnalyzer.setParent(JarAnalyzer ja)
focal_class.full_signature: public void setParent(JarAnalyzer ja)
focal_class.identifier: setParent
focal_class.modifiers: public
focal_class.parameters: (JarAnalyzer ja)
focal_class.return: void
focal_class.signature: void setParent(JarAnalyzer ja)
focal_class.class_method_signature: JarAnalyzer.getParent()
focal_class.full_signature: public JarAnalyzer getParent()
focal_class.identifier: getParent
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: JarAnalyzer
focal_class.signature: JarAnalyzer getParent()
focal_class.class_method_signature: JarAnalyzer.getFileSize()
focal_class.full_signature: public long getFileSize()
focal_class.identifier: getFileSize
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getFileSize()
focal_class.class_method_signature: JarAnalyzer.getInstrumentedFileSize()
focal_class.full_signature: public long getInstrumentedFileSize()
focal_class.identifier: getInstrumentedFileSize
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getInstrumentedFileSize()
focal_class.class_method_signature: JarAnalyzer.setWorkDir(Path _p)
focal_class.full_signature: public void setWorkDir(Path _p)
focal_class.identifier: setWorkDir
focal_class.modifiers: public
focal_class.parameters: (Path _p)
focal_class.return: void
focal_class.signature: void setWorkDir(Path _p)
focal_class.class_method_signature: JarAnalyzer.setRename(boolean _b)
focal_class.full_signature: public void setRename(boolean _b)
focal_class.identifier: setRename
focal_class.modifiers: public
focal_class.parameters: (boolean _b)
focal_class.return: void
focal_class.signature: void setRename(boolean _b)
focal_class.class_method_signature: JarAnalyzer.setLibraryId(LibraryId _id)
focal_class.full_signature: public void setLibraryId(LibraryId _id)
focal_class.identifier: setLibraryId
focal_class.modifiers: public
focal_class.parameters: (LibraryId _id)
focal_class.return: void
focal_class.signature: void setLibraryId(LibraryId _id)
focal_class.class_method_signature: JarAnalyzer.getLibrary()
focal_class.full_signature: public Library getLibrary()
focal_class.identifier: getLibrary
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Library
focal_class.signature: Library getLibrary()
focal_class.class_method_signature: JarAnalyzer.getSHA1()
focal_class.full_signature: public synchronized String getSHA1()
focal_class.identifier: getSHA1
focal_class.modifiers: public synchronized
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getSHA1()
focal_class.class_method_signature: JarAnalyzer.getFileName()
focal_class.full_signature: public String getFileName()
focal_class.identifier: getFileName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getFileName()
focal_class.class_method_signature: JarAnalyzer.call()
focal_class.full_signature: public FileAnalyzer call()
focal_class.identifier: call
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: FileAnalyzer
focal_class.signature: FileAnalyzer call()
focal_class.class_method_signature: JarAnalyzer.createInstrumentedArchive()
focal_class.full_signature: protected void createInstrumentedArchive()
focal_class.identifier: createInstrumentedArchive
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void createInstrumentedArchive()
focal_class.class_method_signature: JarAnalyzer.getInstrumentedArchive()
focal_class.full_signature: public final File getInstrumentedArchive()
focal_class.identifier: getInstrumentedArchive
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: File
focal_class.signature: File getInstrumentedArchive()
focal_class.class_method_signature: JarAnalyzer.getClassNames()
focal_class.full_signature: public Set<String> getClassNames()
focal_class.identifier: getClassNames
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Set<String>
focal_class.signature: Set<String> getClassNames()
focal_class.class_method_signature: JarAnalyzer.hasJARConstructs()
focal_class.full_signature: public boolean hasJARConstructs()
focal_class.identifier: hasJARConstructs
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean hasJARConstructs()
focal_class.class_method_signature: JarAnalyzer.hasChilds()
focal_class.full_signature: @Override public boolean hasChilds()
focal_class.identifier: hasChilds
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean hasChilds()
focal_class.class_method_signature: JarAnalyzer.getChilds(boolean _recursive)
focal_class.full_signature: @Override public Set<FileAnalyzer> getChilds(boolean _recursive)
focal_class.identifier: getChilds
focal_class.modifiers: @Override public
focal_class.parameters: (boolean _recursive)
focal_class.return: Set<FileAnalyzer>
focal_class.signature: Set<FileAnalyzer> getChilds(boolean _recursive)
focal_class.class_method_signature: JarAnalyzer.getConstructIds()
focal_class.full_signature: public synchronized Set<ConstructId> getConstructIds()
focal_class.identifier: getConstructIds
focal_class.modifiers: public synchronized
focal_class.parameters: ()
focal_class.return: Set<ConstructId>
focal_class.signature: Set<ConstructId> getConstructIds()
focal_class.class_method_signature: JarAnalyzer.toString()
focal_class.full_signature: public String toString()
focal_class.identifier: toString
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: JarAnalyzer.getInstrumentationControl()
focal_class.full_signature: public InstrumentationControl getInstrumentationControl()
focal_class.identifier: getInstrumentationControl
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: InstrumentationControl
focal_class.signature: InstrumentationControl getInstrumentationControl()
focal_class.class_method_signature: JarAnalyzer.getInputStream(String _regex, JarEntry _entry)
focal_class.full_signature: @Override public InputStream getInputStream(String _regex, JarEntry _entry)
focal_class.identifier: getInputStream
focal_class.modifiers: @Override public
focal_class.parameters: (String _regex, JarEntry _entry)
focal_class.return: InputStream
focal_class.signature: InputStream getInputStream(String _regex, JarEntry _entry)
focal_class.class_method_signature: JarAnalyzer.getConstructs()
focal_class.full_signature: @Override public Map<ConstructId, Construct> getConstructs()
focal_class.identifier: getConstructs
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Map<ConstructId, Construct>
focal_class.signature: Map<ConstructId, Construct> getConstructs()
focal_class.class_method_signature: JarAnalyzer.getSharedConstructs()
focal_class.full_signature: public List<org.eclipse.steady.shared.json.model.ConstructId> getSharedConstructs()
focal_class.identifier: getSharedConstructs
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<org.eclipse.steady.shared.json.model.ConstructId>
focal_class.signature: List<org.eclipse.steady.shared.json.model.ConstructId> getSharedConstructs()
focal_class.class_method_signature: JarAnalyzer.containsConstruct(ConstructId _id)
focal_class.full_signature: @Override public boolean containsConstruct(ConstructId _id)
focal_class.identifier: containsConstruct
focal_class.modifiers: @Override public
focal_class.parameters: (ConstructId _id)
focal_class.return: boolean
focal_class.signature: boolean containsConstruct(ConstructId _id)
focal_class.class_method_signature: JarAnalyzer.getConstruct(ConstructId _id)
focal_class.full_signature: @Override public Construct getConstruct(ConstructId _id)
focal_class.identifier: getConstruct
focal_class.modifiers: @Override public
focal_class.parameters: (ConstructId _id)
focal_class.return: Construct
focal_class.signature: Construct getConstruct(ConstructId _id)
focal_class.class_method_signature: JarAnalyzer.equals(Object obj)
focal_class.full_signature: @Override public boolean equals(Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(Object obj)
focal_class.class_method_signature: JarAnalyzer.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: JarAnalyzer.isJavaIdentifier(String _name)
focal_class.full_signature: public static boolean isJavaIdentifier(String _name)
focal_class.identifier: isJavaIdentifier
focal_class.modifiers: public static
focal_class.parameters: (String _name)
focal_class.return: boolean
focal_class.signature: boolean isJavaIdentifier(String _name)
focal_class.class_method_signature: JarAnalyzer.getFqClassname(String _jar_entry_name)
focal_class.full_signature: public static String getFqClassname(String _jar_entry_name)
focal_class.identifier: getFqClassname
focal_class.modifiers: public static
focal_class.parameters: (String _jar_entry_name)
focal_class.return: String
focal_class.signature: String getFqClassname(String _jar_entry_name)
focal_class.class_method_signature: JarAnalyzer.setAppContext(Application _ctx)
focal_class.full_signature: public static void setAppContext(Application _ctx)
focal_class.identifier: setAppContext
focal_class.modifiers: public static
focal_class.parameters: (Application _ctx)
focal_class.return: void
focal_class.signature: void setAppContext(Application _ctx)
focal_class.class_method_signature: JarAnalyzer.getAppContext()
focal_class.full_signature: public static Application getAppContext()
focal_class.identifier: getAppContext
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Application
focal_class.signature: Application getAppContext()
focal_class.class_method_signature: JarAnalyzer.insertClasspath(String _url)
focal_class.full_signature: public static void insertClasspath(String _url)
focal_class.identifier: insertClasspath
focal_class.modifiers: public static
focal_class.parameters: (String _url)
focal_class.return: void
focal_class.signature: void insertClasspath(String _url)
focal_class.class_method_signature: JarAnalyzer.getClassPool()
focal_class.full_signature: protected static ClassPool getClassPool()
focal_class.identifier: getClassPool
focal_class.modifiers: protected static
focal_class.parameters: ()
focal_class.return: ClassPool
focal_class.signature: ClassPool getClassPool()
focal_method.body: public static boolean isJavaIdentifier(String _name) {
      if (_name == null || _name.equals("")) return false;
      final char[] chars = _name.toCharArray();
      for (int i = 0; i < chars.length; i++) {
        if (i == 0) {
          if (!Character.isJavaIdentifierStart(chars[i])) return false;
        } else {
          if (!Character.isJavaIdentifierPart(chars[i])) return false;
        }
      }
      return true;
    }
focal_method.class_method_signature: JarAnalyzer.isJavaIdentifier(String _name)
focal_method.full_signature: public static boolean isJavaIdentifier(String _name)
focal_method.identifier: isJavaIdentifier
focal_method.invocations: equals toCharArray isJavaIdentifierStart isJavaIdentifierPart
focal_method.modifiers: public static
focal_method.parameters: (String _name)
focal_method.return: boolean
focal_method.signature: boolean isJavaIdentifier(String _name)